mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 04:27:09 +03:00
object-curly-spacing
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import fetch from "node-fetch";
|
||||
import {Done} from "../utils/utils";
|
||||
import { Done } from "../utils/utils";
|
||||
import { getbaseURL } from "../utils/getBaseURL";
|
||||
import {getHash} from "../../src/utils/getHash";
|
||||
import {db} from "../../src/databases/databases";
|
||||
import { getHash } from "../../src/utils/getHash";
|
||||
import { db } from "../../src/databases/databases";
|
||||
import assert from "assert";
|
||||
|
||||
const endpoint = `${getbaseURL()}/api/lockReason`;
|
||||
@@ -63,7 +63,7 @@ describe("getLockReason", () => {
|
||||
const data = await res.json();
|
||||
const expected = [
|
||||
{ category: "sponsor", locked: 1, reason: "sponsor-reason" },
|
||||
{ category: "intro", locked: 0, reason: ""}
|
||||
{ category: "intro", locked: 0, reason: "" }
|
||||
];
|
||||
assert.deepStrictEqual(data, expected);
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user