From 89c2f4f2ff645c6b4658a98330e9c2398eec4726 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 21 Mar 2021 11:00:00 +1100 Subject: [PATCH] fix spec --- pkg/commands/models/file_change_node_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/commands/models/file_change_node_test.go b/pkg/commands/models/file_change_node_test.go index 8190230e3..e4ec59edf 100644 --- a/pkg/commands/models/file_change_node_test.go +++ b/pkg/commands/models/file_change_node_test.go @@ -83,8 +83,9 @@ func TestCompress(t *testing.T) { Path: "", Children: []*FileChangeNode{ { - Path: "dir1/file2", - File: &File{Name: "file2", ShortStatus: "M ", HasUnstagedChanges: true}, + Path: "dir1/file2", + File: &File{Name: "file2", ShortStatus: "M ", HasUnstagedChanges: true}, + CompressionLevel: 1, }, { Path: "dir2", @@ -100,8 +101,9 @@ func TestCompress(t *testing.T) { }, }, { - Path: "dir3/dir3-1/file5", - File: &File{Name: "file5", ShortStatus: "M ", HasUnstagedChanges: true}, + Path: "dir3/dir3-1/file5", + File: &File{Name: "file5", ShortStatus: "M ", HasUnstagedChanges: true}, + CompressionLevel: 2, }, { File: &File{Name: "file1", ShortStatus: "M ", HasUnstagedChanges: true},