From fed429678ae9fc0128872be818bb5722da6d0b90 Mon Sep 17 00:00:00 2001 From: lyx0 Date: Thu, 28 Oct 2021 22:26:00 +0200 Subject: [PATCH] add testing for twitch accountr atelimits --- pkg/api/aiden/aiden_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pkg/api/aiden/aiden_test.go diff --git a/pkg/api/aiden/aiden_test.go b/pkg/api/aiden/aiden_test.go new file mode 100644 index 0000000..a23a9a0 --- /dev/null +++ b/pkg/api/aiden/aiden_test.go @@ -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) + } + }) +}