aboutsummaryrefslogtreecommitdiff
path: root/internal/plan/json_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/plan/json_test.go')
-rw-r--r--internal/plan/json_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/plan/json_test.go b/internal/plan/json_test.go
index 86c181c..d67313e 100644
--- a/internal/plan/json_test.go
+++ b/internal/plan/json_test.go
@@ -21,7 +21,7 @@ func TestJSONDir(t *testing.T) {
},
Warnings: []string{"moved more than once; a (stop) is probably missing"},
}}
- b, err := json.MarshalIndent(JSON{Version: 1, Note: jsonNote, Dirs: []JSONDir{NewJSONDir("dl", "/r", chains, nil)}}, "", " ")
+ b, err := json.MarshalIndent(JSON{Version: 1, Note: jsonNote, Dirs: []JSONDir{NewJSONDir("dl", "/r", chains, nil, nil)}}, "", " ")
if err != nil {
t.Fatal(err)
}
@@ -61,7 +61,7 @@ func TestJSONDir(t *testing.T) {
func TestJSONDirEmptyStepsAndFilesAreArraysNotNull(t *testing.T) {
stepless := []Chain{{File: file("/r", "y.pdf")}}
- dir := NewJSONDir("dl", "/r", stepless, nil)
+ dir := NewJSONDir("dl", "/r", stepless, nil, nil)
b, err := json.Marshal(dir)
if err != nil {
t.Fatal(err)
@@ -73,7 +73,7 @@ func TestJSONDirEmptyStepsAndFilesAreArraysNotNull(t *testing.T) {
t.Errorf("stepless file's steps should marshal as []: %s", b)
}
- empty := NewJSONDir("dl", "/r", nil, nil)
+ empty := NewJSONDir("dl", "/r", nil, nil, nil)
b, err = json.Marshal(empty)
if err != nil {
t.Fatal(err)