From 910b9c04f45229bd46efaefeca192ea461cf929c Mon Sep 17 00:00:00 2001 From: amtoine Date: Fri, 19 Jul 2024 11:13:41 +0200 Subject: [PATCH] collect the output of `gm repo compare` --- pkgs/nu-git-manager-sugar/tests/git.nu | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/nu-git-manager-sugar/tests/git.nu b/pkgs/nu-git-manager-sugar/tests/git.nu index 9057dfe..1ee5e29 100644 --- a/pkgs/nu-git-manager-sugar/tests/git.nu +++ b/pkgs/nu-git-manager-sugar/tests/git.nu @@ -353,18 +353,17 @@ export def branch-compare [] { "+++ b/foo.txt", "@@ -0,0 +1 @@", "+foo", - "\\ No newline at end of file" - "", + "\\ No newline at end of file", ] - assert equal (gm repo compare main) ($expected | str join "\n") - assert equal (gm repo compare main --head HEAD) ($expected | str join "\n") + assert equal (gm repo compare main | collect) ($expected | str join "\n") + assert equal (gm repo compare main --head HEAD | collect) ($expected | str join "\n") ^git checkout main "bar" | save --append foo.txt ^git add foo.txt commit "c2" - assert equal (gm repo compare main --head foo) ($expected | str join "\n") + assert equal (gm repo compare main --head foo | collect) ($expected | str join "\n") clean $foo }