Skip to content

Commit a9120f7

Browse files
rjpadilladogi
andauthored
update tests/locale.bats (fixes #2156) (#2157)
Co-authored-by: dogi <dogi@users.noreply.github.com>
1 parent 559f5f6 commit a9120f7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@treehouses/cli",
3-
"version": "1.25.42",
3+
"version": "1.25.43",
44
"remote": "4000",
55
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
66
"main": "cli.sh",

tests/locale.bats

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
#!/usr/bin/env bats
22
load test-helper
33

4+
@test "$clinom locale (no argument)" {
5+
run "${clicmd}" locale
6+
assert_output -p 'locale is missing'
7+
}
8+
49
@test "$clinom locale en_US" {
510
run "${clicmd}" locale en_US
611
assert_success && assert_output -p 'locale has been changed'
12+
}
13+
14+
@test "$clinom locale (non-supported locale)" {
15+
run "${clicmd}" locale no_NO
16+
assert_output -p 'is not supported'
717
}

0 commit comments

Comments
 (0)