check byte not convert to string

This commit is contained in:
Tyrel Souza 2019-05-15 13:14:01 -04:00 committed by Tyrel Souza
parent 610febd055
commit a472d2f337
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0

View File

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