mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
fix getTotalStats userCount
This commit is contained in:
@@ -7,7 +7,7 @@ describe("getTotalStats", () => {
|
|||||||
it("Can get total stats", async () => {
|
it("Can get total stats", async () => {
|
||||||
const result = await client({ url: endpoint });
|
const result = await client({ url: endpoint });
|
||||||
const data = result.data;
|
const data = result.data;
|
||||||
assert.ok(data.userCount >= 0);
|
assert.ok(data?.userCount ?? true);
|
||||||
assert.ok(data.activeUsers >= 0);
|
assert.ok(data.activeUsers >= 0);
|
||||||
assert.ok(data.apiUsers >= 0);
|
assert.ok(data.apiUsers >= 0);
|
||||||
assert.ok(data.viewCount >= 0);
|
assert.ok(data.viewCount >= 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user