We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tests/locale.bats
1 parent 559f5f6 commit a9120f7Copy full SHA for a9120f7
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@treehouses/cli",
3
- "version": "1.25.42",
+ "version": "1.25.43",
4
"remote": "4000",
5
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
6
"main": "cli.sh",
tests/locale.bats
@@ -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'
7
+}
8
+
9
@test "$clinom locale en_US" {
10
run "${clicmd}" locale en_US
11
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'
17
}
0 commit comments