From fe09ef3988e0ff9a03546605b009fa475d8e0ef7 Mon Sep 17 00:00:00 2001 From: Luis Britos Manriquez Date: Mon, 20 Apr 2020 17:26:15 -0300 Subject: [PATCH] fix tests --- tests/routes/dashboardAdmins.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/routes/dashboardAdmins.js b/tests/routes/dashboardAdmins.js index 7145010..1cc06ef 100644 --- a/tests/routes/dashboardAdmins.js +++ b/tests/routes/dashboardAdmins.js @@ -397,7 +397,8 @@ tape('dashboardAdmins should return 200 if everything is ok', function(t) { azp: 'https://test.auth0.com/api/v2/', name: 'John Doe', admin: true, - nonce: 'nonce' + nonce: 'nonce', + exp: new Date().getTime() }); const req = { @@ -455,7 +456,8 @@ tape('dashboardAdmins should return 200 with legacy nonce and state', function(t azp: 'https://test.auth0.com/api/v2/', name: 'John Doe', admin: true, - nonce: 'nonce' + nonce: 'nonce', + exp: new Date().getTime() }); const req = { @@ -514,7 +516,8 @@ tape('dashboardAdmins should work with localStorage', function(t) { azp: 'https://test.auth0.com/api/v2/', name: 'John Doe', admin: true, - nonce: 'nonce' + nonce: 'nonce', + exp: new Date().getTime() }); const req = {