diff --git a/test/UnauthorizedError.test.ts b/test/UnauthorizedError.test.ts index d6952131..afc3eed8 100644 --- a/test/UnauthorizedError.test.ts +++ b/test/UnauthorizedError.test.ts @@ -1,5 +1,5 @@ import { UnauthorizedError } from '../src/errors/UnauthorizedError'; -import assert from 'assert'; +import * as assert from 'assert'; describe('Unauthorized Error', () => { const e = new UnauthorizedError('credentials_bad_format', new Error('a')); diff --git a/test/jwt.test.ts b/test/jwt.test.ts index f8c3071a..b6b79ed4 100644 --- a/test/jwt.test.ts +++ b/test/jwt.test.ts @@ -2,7 +2,7 @@ import * as jwt from 'jsonwebtoken'; import * as express from 'express'; import { expressjwt, UnauthorizedError, ExpressJwtRequest, GetVerificationKey } from '../src'; -import assert from 'assert'; +import * as assert from 'assert'; describe('failure tests', function () { diff --git a/test/multitenancy.test.ts b/test/multitenancy.test.ts index 776fca35..73c116ec 100644 --- a/test/multitenancy.test.ts +++ b/test/multitenancy.test.ts @@ -1,7 +1,7 @@ import * as jwt from 'jsonwebtoken'; import * as express from 'express'; import { expressjwt, ExpressJwtRequest, GetVerificationKey } from '../src'; -import assert from 'assert'; +import * as assert from 'assert'; describe('multitenancy', function () { const req = {} as ExpressJwtRequest; diff --git a/test/revocation.test.ts b/test/revocation.test.ts index 219d7dc5..8ede42ae 100644 --- a/test/revocation.test.ts +++ b/test/revocation.test.ts @@ -1,7 +1,7 @@ import * as jwt from 'jsonwebtoken'; import * as express from 'express'; import { expressjwt, ExpressJwtRequest } from '../src'; -import assert from 'assert'; +import * as assert from 'assert'; describe('revoked jwts', function () { const secret = 'shhhhhh'; diff --git a/test/string_token.test.ts b/test/string_token.test.ts index 513deed7..c21117f5 100644 --- a/test/string_token.test.ts +++ b/test/string_token.test.ts @@ -1,7 +1,7 @@ import * as jwt from 'jsonwebtoken'; import * as express from 'express'; import { expressjwt, ExpressJwtRequest } from '../src'; -import assert from 'assert'; +import * as assert from 'assert'; describe('string tokens', function () { diff --git a/tsconfig.json b/tsconfig.json index 6d2144ca..dd76af26 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,10 +3,9 @@ "outDir": "./dist", "allowJs": true, "target": "es5", - "esModuleInterop": true, "declaration": true }, "include": [ "./src/**/*" ] -} +} \ No newline at end of file