Skip to content

Commit

Permalink
Update a test
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Apr 27, 2024
1 parent 5300988 commit 93ab3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/client_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("Client", () => {
equal(await client.checkComment(ham), CheckResult.ham));

it("should return `CheckResult.spam` for invalid comment (e.g. spam)", async () => {
/** @type {number[]} */ const isSpam = [CheckResult.spam, CheckResult.pervasiveSpam];
/** @type {CheckResult[]} */ const isSpam = [CheckResult.spam, CheckResult.pervasiveSpam];
ok(isSpam.includes(await client.checkComment(spam)));
});
});
Expand Down

0 comments on commit 93ab3b3

Please sign in to comment.