From ad4c34ef28ac22ff033e068d7049f16aceb0966d Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 6 Jan 2022 15:20:41 -0500 Subject: [PATCH] Fix UUID test --- test/cases/getSubmissionUUID.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cases/getSubmissionUUID.ts b/test/cases/getSubmissionUUID.ts index 61ec053..e15044f 100644 --- a/test/cases/getSubmissionUUID.ts +++ b/test/cases/getSubmissionUUID.ts @@ -1,12 +1,12 @@ import { getSubmissionUUID } from "../../src/utils/getSubmissionUUID"; import assert from "assert"; -import { ActionType, VideoID, Service } from "../../src/types/segments.model"; +import { ActionType, VideoID, Service, Category } 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, Service.YouTube), - "529611b4cdd7319e705a32ae9557a02e59c8dbc1306097b2d2d5807c6405e9b1a"); + getSubmissionUUID("video001" as VideoID, "sponsor" as Category, "skip" as ActionType, "testuser001" as UserID, 13.33337, 42.000001, Service.YouTube), + "2a473bca993dd84d8c2f6a4785989b20948dfe0c12c00f6f143bbda9ed561dca6"); }); });