1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-26 00:33:03 +02:00

Docs, and fixing tests

This commit is contained in:
Philipp Heckel 2021-12-25 10:35:08 +01:00
parent 3bc8ff0104
commit 8a625ef786
4 changed files with 33 additions and 13 deletions

View file

@ -102,7 +102,7 @@ func TestParsePriority_Invalid(t *testing.T) {
}
func TestPriorityString(t *testing.T) {
priorities := []int{0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 5}
priorities := []int{0, 1, 2, 3, 4, 5}
expected := []string{"default", "min", "low", "default", "high", "max"}
for i, priority := range priorities {
actual, err := PriorityString(priority)