mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
getLockCategories sort categories
This commit is contained in:
@@ -30,7 +30,10 @@ const validateResponse = (videoID: string, overrides: lockOverrides = {}, expect
|
|||||||
return getLockCategories(videoID, actionTypes, service)
|
return getLockCategories(videoID, actionTypes, service)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
assert.strictEqual(res.status, 200);
|
assert.strictEqual(res.status, 200);
|
||||||
assert.ok(partialDeepEquals(res.data, expectedResponse));
|
// modify both categories to sort()
|
||||||
|
res.data.categories?.sort();
|
||||||
|
expectedResponse.categories?.sort();
|
||||||
|
assert.deepStrictEqual(res.data, expectedResponse);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user