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:
parent
3bc8ff0104
commit
8a625ef786
4 changed files with 33 additions and 13 deletions
util
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue