Skip to content

Commit

Permalink
Add tests for fish_mode_prompt.fish
Browse files Browse the repository at this point in the history
  • Loading branch information
sodisdocs committed Apr 11, 2019
1 parent e44b453 commit 0a0d524
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/fish_mode_prompt.test.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
source $current_dirname/../fish_mode_prompt.fish

set --local succeed 0
set --local empty ''

@test "fish_mode_prompt: succeed" (
fish_mode_prompt
) $status -eq $succeed

@test "fish_mode_prompt: returns nothing" (
fish_mode_prompt
) = $empty

0 comments on commit 0a0d524

Please sign in to comment.