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