getLockCategories sort categories

This commit is contained in:
Michael C 2023-09-29 00:45:43 -04:00
parent 26b3ea6a50
commit d8b93dec00
No known key found for this signature in database
GPG key ID: FFB04FB3B878B7B4

View file

@ -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);
});
};