mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 15:37:07 +03:00
Fix flaky test
This commit is contained in:
@@ -436,12 +436,12 @@ describe("postSkipSegments", () => {
|
|||||||
category: "sponsor",
|
category: "sponsor",
|
||||||
videoDuration: 100
|
videoDuration: 100
|
||||||
};
|
};
|
||||||
assert.ok(partialDeepEquals(videoRows[1], expected));
|
|
||||||
const fullExpected = {
|
const fullExpected = {
|
||||||
category: "sponsor",
|
category: "sponsor",
|
||||||
actionType: "full"
|
actionType: "full"
|
||||||
};
|
};
|
||||||
assert.ok(partialDeepEquals(videoRows[0], fullExpected));
|
assert.ok((partialDeepEquals(videoRows[0], fullExpected) && partialDeepEquals(videoRows[1], expected))
|
||||||
|
|| (partialDeepEquals(videoRows[1], fullExpected) && partialDeepEquals(videoRows[0], expected)));
|
||||||
assert.strictEqual(hiddenVideoRows.length, 1);
|
assert.strictEqual(hiddenVideoRows.length, 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user