check byte not convert to string
This commit is contained in:
parent
610febd055
commit
a472d2f337
@ -27,6 +27,9 @@ func TestPassesMinimumRequirements(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestReadTideliftYamlFile(t *testing.T) {
|
func TestReadTideliftYamlFile(t *testing.T) {
|
||||||
yamlFile := string(readTideliftYamlFile("test/good_config"))
|
yamlFile := readTideliftYamlFile("test/good_config")
|
||||||
assert.Equal(t, "team-name: tidelift\nrepository-name: fake\n", yamlFile, "should have parsed")
|
assert.Equal(t,
|
||||||
|
[]byte("team-name: tidelift\nrepository-name: fake\n"),
|
||||||
|
yamlFile,
|
||||||
|
"should have loaded file into []byte")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user