From ceb48fd45e0fa89688e57d4fbdbd8e55356293bb Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 9 Feb 2021 10:30:00 +0000 Subject: [PATCH] fix(core): update --- test/test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test.ts b/test/test.ts index 34dd1f5..acfe71b 100644 --- a/test/test.ts +++ b/test/test.ts @@ -21,6 +21,8 @@ tap.test('should create a new jwt', async () => { tap.test('should verify a jwt', async () => { const data = await smartjwtInstance.verifyJWTAndGetData(testJwt); + // tslint:disable-next-line: no-unused-expression + expect(data).to.not.be.null; console.log(data); console.log(smartjwtInstance.publicKey.toPemString()); }); @@ -44,6 +46,6 @@ tap.test('should verify a jwt on another instance', async () => { secondSmartJwtInstance.setPublicPemKeyForVerification(smartjwtInstance.publicKey.toPemString()); const result = secondSmartJwtInstance.verifyJWTAndGetData(testJwt); console.log(result); -}) +}); tap.start();