tideliftcli/tidelift_yml_test.go

17 lines
413 B
Go
Raw Normal View History

2019-05-15 03:54:04 +00:00
package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestVerifyTideliftYamlExists(t *testing.T) {
verifiedFalse := verifyTideliftYamlExists("test/no_config")
assert.False(t, verifiedFalse, "should not be a .tidelift.yml in test/no_config")
verifiedTrue := verifyTideliftYamlExists("test/bad_config")
assert.True(t, verifiedTrue, "should be a .tidelift.yml in test/bad_config")
}