diff --git a/test/client_test.js b/test/client_test.js index 6f2b59c6..f3811603 100644 --- a/test/client_test.js +++ b/test/client_test.js @@ -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))); }); });