mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-01-30 06:10:52 +03:00
fix tests and linting
This commit is contained in:
@@ -584,7 +584,10 @@ describe("postSkipSegments", () => {
|
||||
.then(async res => {
|
||||
assert.strictEqual(res.status, 403);
|
||||
const errorMessage = await res.text();
|
||||
assert.strictEqual(errorMessage, "Reason01");
|
||||
const reason = "Reason01";
|
||||
const userID = "09dee632bfbb1acc9fda3169cc14b46e459b45cee4f4449be305590e612b5eb7"
|
||||
const expected = `Submission rejected due to a warning from a moderator. This means that we noticed you were making some common mistakes that are not malicious, and we just want to clarify the rules. Could you please send a message in Discord or Matrix so we can further help you? Your userID is ${userID}. Warning reason: ${reason}`;
|
||||
assert.strictEqual(errorMessage, expected);
|
||||
done();
|
||||
})
|
||||
.catch(err => done(err));
|
||||
|
||||
Reference in New Issue
Block a user