Skip to content

Commit aae3b45

Browse files
committed
test(print): account for newline in fallback pager output assertion
Signed-off-by: Amir Tahani <amirthn653381@gmail.com>
1 parent 460504f commit aae3b45

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎internal/pkg/print/print_test.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,9 @@ func TestPagerDisplay_StackitPager(t *testing.T) {
409409
if err != nil {
410410
t.Fatalf("unexpected error: %s", err.Error())
411411
}
412-
if buf.String() != tt.content {
413-
t.Errorf("unexpected output: got %q, want %q", buf.String(), tt.content)
412+
expectedOutput := tt.content + "\n"
413+
if buf.String() != expectedOutput {
414+
t.Errorf("unexpected output: got %q, want %q", buf.String(), expectedOutput)
414415
}
415416
})
416417
}

0 commit comments

Comments
 (0)