File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
33test_description=' git-psuh test
4- This test runs git-psuh and makes sure it does not crash.'
4+ This test runs git-psuh and makes sure it does not crash or have other errors .'
55
66. ./test-lib.sh
77
8+ # This is the main test from the tutorial, ensuring the command
9+ # runs and prints the expected output after setting the necessary config.
810test_expect_success ' runs correctly with no args and good output' '
9- git config user.name "Test User" &&
10- git psuh >actual &&
11- grep "Your name:" actual
11+ git config user.name "Test User" &&
12+ git psuh >actual &&
13+ grep "Your name: Test User" actual
14+ '
15+
16+ # A simpler test just to ensure the command exits successfully.
17+ test_expect_success ' git psuh does not crash' '
18+ git psuh
1219'
1320
1421test_done
You can’t perform that action at this time.
0 commit comments