mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-03-27 08:17:40 +03:00
make eslint scream about promises, then fix all lints
also rewrite a bunch of test suites from using done callbacks to using async functions - it's way too easy to forget about a .catch() clause
This commit is contained in:
@@ -73,11 +73,11 @@ describe("getUserID", () => {
|
||||
)
|
||||
);
|
||||
|
||||
it("Should be able to get multiple fuzzy user info from middle", () => {
|
||||
it("Should be able to get multiple fuzzy user info from middle", () =>
|
||||
validateSearch("user",
|
||||
[users["fuzzy_1"], users["fuzzy_2"], users["specific_1"]]
|
||||
);
|
||||
});
|
||||
)
|
||||
);
|
||||
|
||||
it("Should be able to get with fuzzy public ID", () => {
|
||||
const userID = users["public_1"].pubID.substring(0,60);
|
||||
@@ -117,4 +117,4 @@ describe("getUserID 400/ 404", () => {
|
||||
it("Should not allow usernames less than 3 characters", () => validateStatus("aa", 400));
|
||||
it("Should return 404 if escaped backslashes present", () => validateStatus("%redos\\\\_", 404));
|
||||
it("Should return 404 if backslashes present", () => validateStatus(`\\%redos\\_`, 404));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user