Skip to content

Commit

Permalink
update tests/locale.bats (fixes #2156) (#2157)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
rjpadilla and dogi authored Apr 15, 2021
1 parent 559f5f6 commit a9120f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.25.42",
"version": "1.25.43",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down
10 changes: 10 additions & 0 deletions tests/locale.bats
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
#!/usr/bin/env bats
load test-helper

@test "$clinom locale (no argument)" {
run "${clicmd}" locale
assert_output -p 'locale is missing'
}

@test "$clinom locale en_US" {
run "${clicmd}" locale en_US
assert_success && assert_output -p 'locale has been changed'
}

@test "$clinom locale (non-supported locale)" {
run "${clicmd}" locale no_NO
assert_output -p 'is not supported'
}

0 comments on commit a9120f7

Please sign in to comment.