mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 14:07:09 +03:00
add service to table only have videoID
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { getSubmissionUUID } from "../../src/utils/getSubmissionUUID";
|
||||
import assert from "assert";
|
||||
import { ActionType, VideoID } from "../../src/types/segments.model";
|
||||
import { ActionType, VideoID, Service } from "../../src/types/segments.model";
|
||||
import { UserID } from "../../src/types/user.model";
|
||||
|
||||
describe("getSubmissionUUID", () => {
|
||||
it("Should return the hashed value", () => {
|
||||
assert.strictEqual(getSubmissionUUID("video001" as VideoID, "skip" as ActionType, "testuser001" as UserID, 13.33337, 42.000001), "48ad47e445e67a7b963d9200037b36ec706eddcb752fdadc7bb2f061b56be6a23");
|
||||
assert.strictEqual(
|
||||
getSubmissionUUID("video001" as VideoID, "skip" as ActionType, "testuser001" as UserID, 13.33337, 42.000001, Service.YouTube),
|
||||
"529611b4cdd7319e705a32ae9557a02e59c8dbc1306097b2d2d5807c6405e9b1a");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user