Fix type error in tests

This commit is contained in:
Ajay
2023-08-03 01:16:57 -04:00
parent dfa4578d28
commit 1dbb393e4d
3 changed files with 6 additions and 6 deletions

View File

@@ -19,13 +19,13 @@ describe("tokenUtils test", function() {
it("Should be able to create patreon token", function (done) {
if (!config?.patreon) this.skip();
tokenUtils.createAndSaveToken(tokenUtils.TokenType.patreon, "test_code").then((licenseKey) => {
assert.ok(validateToken(licenseKey));
assert.ok(validateToken(licenseKey[0]));
done();
});
});
it("Should be able to create local token", (done) => {
tokenUtils.createAndSaveToken(tokenUtils.TokenType.local).then((licenseKey) => {
assert.ok(validateToken(licenseKey));
assert.ok(validateToken(licenseKey[0]));
done();
});
});