Fixed broken common test
This commit is contained in:
parent
418be9217b
commit
66a6b29323
@ -3,7 +3,7 @@ package jsh
|
||||
import "testing"
|
||||
|
||||
func TestToJson(t *testing.T) {
|
||||
fixture := JshOutput{[]string{}, []string{}}
|
||||
fixture := JshFrame{[]string{}, []string{}}
|
||||
json := fixture.ToJson()
|
||||
expected := `{"StdOut":[],"StdErr":[]}`
|
||||
actual := *json
|
||||
@ -11,7 +11,7 @@ func TestToJson(t *testing.T) {
|
||||
t.Errorf("Empty fixture did not match:\n%s != %s", expected, actual)
|
||||
}
|
||||
|
||||
fixture = JshOutput{[]string{"potato!"}, []string{}}
|
||||
fixture = JshFrame{[]string{"potato!"}, []string{}}
|
||||
json = fixture.ToJson()
|
||||
expected = `{"StdOut":["potato!"],"StdErr":[]}`
|
||||
actual = *json
|
||||
|
Reference in New Issue
Block a user