From c0952c15c86aaabf6961e58123ad6a53ed5c8077 Mon Sep 17 00:00:00 2001 From: Michael C Date: Sat, 24 Sep 2022 23:08:36 -0400 Subject: [PATCH] fix getTotalStats userCount --- test/cases/getTotalStats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/getTotalStats.ts b/test/cases/getTotalStats.ts index 04eab62..f95c292 100644 --- a/test/cases/getTotalStats.ts +++ b/test/cases/getTotalStats.ts @@ -7,7 +7,7 @@ describe("getTotalStats", () => { it("Can get total stats", async () => { const result = await client({ url: endpoint }); const data = result.data; - assert.ok(data.userCount >= 0); + assert.ok(data?.userCount ?? true); assert.ok(data.activeUsers >= 0); assert.ok(data.apiUsers >= 0); assert.ok(data.viewCount >= 0);