mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add testing for twitch accountr atelimits
This commit is contained in:
parent
432edf4e63
commit
fed429678a
19
pkg/api/aiden/aiden_test.go
Normal file
19
pkg/api/aiden/aiden_test.go
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
package aiden
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestAidenBotRatelimits(t *testing.T) {
|
||||||
|
t.Run("returns a twitch accounts ratelimits", func(t *testing.T) {
|
||||||
|
requestPajbot, _ := ApiCall("api/v1/twitch/botStatus/pajbot?includeLimits=1")
|
||||||
|
requestNourybot, _ := ApiCall("api/v1/twitch/botStatus/nourybot?includeLimits=1")
|
||||||
|
|
||||||
|
got := requestPajbot
|
||||||
|
want := requestNourybot
|
||||||
|
|
||||||
|
if got != want {
|
||||||
|
t.Errorf("got %q, want %q", got, want)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in a new issue