Skip to content

Commit

Permalink
Add sharness tests for colorful help
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Julian Dax <julian.dax@uni-siegen.de>
  • Loading branch information
Julian Dax committed Dec 30, 2016
1 parent 9d18bcd commit 81dc4d4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/sharness/t0010-basic-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,13 @@ test_expect_success "'ipfs commands --flags' output looks good" '
grep "ipfs repo gc --quiet / ipfs repo gc -q" commands.txt
'

test_expect_success "'ipfs --color' succeeds" '
ipfs --color >commands.txt
'

test_expect_success "'ipfs --color' is colorful" '
grep $"\e\[0m" commands.txt &&
grep $"\e\[36m" commands.txt
'

test_done

0 comments on commit 81dc4d4

Please sign in to comment.