Fixed broken common test

This commit is contained in:
Fredric Silberberg 2014-10-16 18:41:32 -04:00
parent 418be9217b
commit 66a6b29323

View File

@ -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