Skip to content

Commit

Permalink
Minor changes for tests readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ellenaua committed Dec 19, 2021
1 parent 5213f75 commit 8a507ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jwt.service.spec.ts
Expand Up @@ -49,7 +49,7 @@ describe('JWT Service', () => {
signSpy.mockRestore();
});

describe('should use config.secretOrKeyProvider to get a secret', () => {
describe('should use config.secretOrKeyProvider', () => {
let jwtService: JwtService;
let testPayload: string = getRandomString();

Expand Down Expand Up @@ -115,7 +115,7 @@ describe('JWT Service', () => {
});
});

describe('should use public/private key', () => {
describe('should use config.privateKey and config.publicKey', () => {
let jwtService: JwtService;
let testPayload: string = getRandomString();

Expand Down Expand Up @@ -152,7 +152,7 @@ describe('JWT Service', () => {
});
});

describe('override but warn deprecation for "secretOrPrivateKey"', () => {
describe('should use config.secretOrPrivateKey but warn about deprecation', () => {
let jwtService: JwtService;
let consoleWarnSpy: jest.SpyInstance;
let testPayload: string = getRandomString();
Expand Down

0 comments on commit 8a507ac

Please sign in to comment.