tideliftcli/tidelift_yml_test.go
2019-05-15 22:41:12 -04:00

17 lines
413 B
Go

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")
}