Skip to content

Commit d6e5f3a

Browse files
committed
add test to check the token has the correct email
1 parent da75afd commit d6e5f3a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package-lock.json

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/auth0/test/auth0.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ describe('Auth0 simulator', () => {
289289
it('should return an iss field with a forward slash', function* () {
290290
expect(token.payload.iss).toBe('https://localhost:4400/');
291291
});
292+
293+
it('token sould contain a valid email', function* () {
294+
expect(token.payload.email).toBe(person.data.email);
295+
});
292296
});
293297

294298

0 commit comments

Comments
 (0)