From a9120f7523cf5643bce9e2292d92cadc871684b1 Mon Sep 17 00:00:00 2001 From: RJ Padilla Date: Wed, 14 Apr 2021 21:59:39 -0400 Subject: [PATCH] update `tests/locale.bats` (fixes #2156) (#2157) Co-authored-by: dogi --- package.json | 2 +- tests/locale.bats | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0fd4a4277f..bedb3bafc4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tests/locale.bats b/tests/locale.bats index 489d94050e..0445fdd43a 100755 --- a/tests/locale.bats +++ b/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' +} + @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' } \ No newline at end of file