Skip to content

Commit 2c31696

Browse files
committed
Add verification tests
1 parent e1dc1a7 commit 2c31696

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/04.modify.bats

+28
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,57 @@ load pre
1313
run bash discord.sh --modify --username "Modify with username"
1414
[ "$status" -eq 0 ]
1515
}
16+
@test "modify: verify --modify ---username --gnu-style <>" {
17+
run bash discord.sh --text "verify"
18+
[ "$status" -eq 0 ]
19+
}
1620
@test "modify: --modify --username --gnu-style=<>" {
1721
run bash discord.sh --modify --username="Modify with username"
1822
[ "$status" -eq 0 ]
1923
}
24+
@test "modify: verify --modify ---username --gnu-style=<>" {
25+
run bash discord.sh --text "verify"
26+
[ "$status" -eq 0 ]
27+
}
2028
# Modify with avatar
2129
@test "modify: --modify --avatar --gnu-style <>" {
2230
run bash discord.sh --modify --avatar "https://i.imgur.com/12jyR5Q.png"
2331
[ "$status" -eq 0 ]
2432
}
33+
@test "modify: verify --modify ---avatar --gnu-style <>" {
34+
run bash discord.sh --text "verify"
35+
[ "$status" -eq 0 ]
36+
}
2537
@test "modify: --modify --avatar --gnu-style=<>" {
2638
run bash discord.sh --modify --avatar="https://i.imgur.com/12jyR5Q.png"
2739
[ "$status" -eq 0 ]
2840
}
41+
@test "modify: verify --modify ---avatar --gnu-style=<>" {
42+
run bash discord.sh --text "verify"
43+
[ "$status" -eq 0 ]
44+
}
2945
# Modify with username and avatar
3046
@test "modify: --modify --username --avatar --gnu-style <>" {
3147
run bash discord.sh --modify --username "Modify with username and avatar" --avatar "https://i.imgur.com/12jyR5Q.png"
3248
[ "$status" -eq 0 ]
3349
}
50+
@test "modify: verify --modify --username --avatar --gnu-style <>" {
51+
run bash discord.sh --text "verify"
52+
[ "$status" -eq 0 ]
53+
}
3454
@test "modify: --modify --username --avatar --gnu-style=<>" {
3555
run bash discord.sh --modify --username "Modify with username and avatar" --avatar "https://i.imgur.com/12jyR5Q.png"
3656
[ "$status" -eq 0 ]
3757
}
58+
@test "modify: verify --modify --username --avatar --gnu-style=<>" {
59+
run bash discord.sh --text "verify"
60+
[ "$status" -eq 0 ]
61+
}
3862
@test "modify: --modify --username --avatar --gnu-style varied" {
3963
run bash discord.sh --modify --username "Modify with username and avatar" --avatar="https://i.imgur.com/12jyR5Q.png"
4064
[ "$status" -eq 0 ]
65+
}
66+
@test "modify: verify --modify --username --avatar --gnu-style varied" {
67+
run bash discord.sh --text "verify"
68+
[ "$status" -eq 0 ]
4169
}

0 commit comments

Comments
 (0)