From c638186b33265b5cdf51330a7c7208a55a600b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 20 Jun 2023 19:24:21 -0400 Subject: [PATCH] test: fix another test --- test/tokens.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tokens.js b/test/tokens.js index 8ec1130a5c..8741eb9be4 100644 --- a/test/tokens.js +++ b/test/tokens.js @@ -63,7 +63,7 @@ describe('API tokens', () => { }); it('should fail if you pass in invalid data', async () => { - await assert.rejects(api.utils.tokens.get(token), { message: '[[error:invalid-data]]' }); + await assert.rejects(api.utils.tokens.get(null), { message: '[[error:invalid-data]]' }); }); it('should show lastSeen and lastSeenISO as undefined/null if it is a new token', async () => {