mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
getLockCategories sort categories
This commit is contained in:
parent
26b3ea6a50
commit
d8b93dec00
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ const validateResponse = (videoID: string, overrides: lockOverrides = {}, expect
|
|||
return getLockCategories(videoID, actionTypes, service)
|
||||
.then(res => {
|
||||
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);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue