Skip to content

Commit 0cce178

Browse files
committed
chore(tests): fixed tests
Fixed tests: helps.bats was broken after the new markdown help. Forced the OPS_BRANCH env (because it's fixed in test code) in Example_download.
1 parent 0fcb8cf commit 0cce178

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

prepare_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func Example_locate() {
4343
func Example_download() {
4444
_ = os.Chdir(workDir)
4545
OpsBranch = "0.1.0"
46+
os.Setenv("OPS_BRANCH", OpsBranch)
4647
opsdir, _ := homedir.Expand("~/.ops")
4748
_ = RemoveAll(opsdir)
4849
_, _ = downloadTasksFromGitHub(true, true)

tests/help.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ setup() {
6161

6262
run ops -t
6363
assert_success
64-
assert_line --partial "OpenServerless Tasks:"
64+
assert_line --partial "OpenServerless Administration Tasks"
6565
refute_line "Usage of experiments:"
6666
run ops -tasks
67-
assert_line --partial "OpenWhisk Tasks:"
67+
assert_line --partial "OpenWhisk Tasks"
6868
refute_line "Usage of experiments:"
6969

7070
run ops -i

0 commit comments

Comments
 (0)