mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 23:47:00 +03:00
add additional/missing tests
This commit is contained in:
11
test/cases/getDaysSavedFormatted.ts
Normal file
11
test/cases/getDaysSavedFormatted.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import assert from "assert";
|
||||
import { client } from "../utils/httpClient";
|
||||
|
||||
const endpoint = "/api/getDaysSavedFormatted";
|
||||
|
||||
describe("getDaysSavedFormatted", () => {
|
||||
it("can get days saved", async () => {
|
||||
const result = await client({ url: endpoint });
|
||||
assert.ok(result.data.daysSaved >= 0);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user