17 lines
413 B
Go
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")
|
||
|
|
||
|
}
|