Browse Source

Fixed broken common test

Fredric Silberberg 5 years ago
parent
commit
66a6b29323
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      common_test.go

+ 2
- 2
common_test.go View File

@@ -3,7 +3,7 @@ package jsh
3 3
 import "testing"
4 4
 
5 5
 func TestToJson(t *testing.T) {
6
-	fixture := JshOutput{[]string{}, []string{}}
6
+	fixture := JshFrame{[]string{}, []string{}}
7 7
 	json := fixture.ToJson()
8 8
 	expected := `{"StdOut":[],"StdErr":[]}`
9 9
 	actual := *json
@@ -11,7 +11,7 @@ func TestToJson(t *testing.T) {
11 11
 		t.Errorf("Empty fixture did not match:\n%s != %s", expected, actual)
12 12
 	}
13 13
 
14
-	fixture = JshOutput{[]string{"potato!"}, []string{}}
14
+	fixture = JshFrame{[]string{"potato!"}, []string{}}
15 15
 	json = fixture.ToJson()
16 16
 	expected = `{"StdOut":["potato!"],"StdErr":[]}`
17 17
 	actual = *json

Loading…
Cancel
Save