From b4a2cbd9ec8f0ac5284234a52d8004264fe8ea0e Mon Sep 17 00:00:00 2001 From: underrateddev Date: Sat, 21 Mar 2020 02:31:07 -0700 Subject: [PATCH] updated tests, still requires manual entry in tests --- spec/AuthenticationAdapters.spec.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/AuthenticationAdapters.spec.js b/spec/AuthenticationAdapters.spec.js index 014dd3259d..bdb05698b5 100644 --- a/spec/AuthenticationAdapters.spec.js +++ b/spec/AuthenticationAdapters.spec.js @@ -1312,7 +1312,7 @@ describe('apple signin auth adapter', () => { await apple.validateAuthData( { id: 'INSERT ID HERE', - token: 'INSERT TOKEN HERE WITH INVALID JWT ISSUER', + token: 'INSERT APPLE TOKEN HERE WITH INVALID JWT ISSUER', }, { clientId: ['INSERT CLIENT ID HERE'] } ); @@ -1329,7 +1329,7 @@ describe('apple signin auth adapter', () => { await apple.validateAuthData( { id: 'INSERT ID HERE', - token: 'INSERT TOKEN HERE WITH INVALID JWT ISSUER', + token: 'INSERT APPLE TOKEN HERE WITH INVALID JWT ISSUER', }, { clientId: 'INSERT CLIENT ID HERE' } ); @@ -1344,7 +1344,7 @@ describe('apple signin auth adapter', () => { it('(using client id as string) should throw error with invalid jwt client_id', async () => { try { await apple.validateAuthData( - { id: 'INSERT ID HERE', token: 'INSERT TOKEN HERE' }, + { id: 'INSERT ID HERE', token: 'INSERT APPLE TOKEN HERE' }, { clientId: 'secret' } ); fail(); @@ -1356,7 +1356,7 @@ describe('apple signin auth adapter', () => { it('(using client id as array) should throw error with invalid jwt client_id', async () => { try { await apple.validateAuthData( - { id: 'INSERT ID HERE', token: 'INSERT TOKEN HERE' }, + { id: 'INSERT ID HERE', token: 'INSERT APPLE TOKEN HERE' }, { clientId: ['secret'] } ); fail(); @@ -1365,11 +1365,11 @@ describe('apple signin auth adapter', () => { } }); - it('should throw error with with invalid user id', async () => { + it('should throw error with invalid user id', async () => { try { await apple.validateAuthData( - { id: 'invalid user', token: 'INSERT TOKEN HERE' }, - { clientId: 'INSERT CLIENT ID' } + { id: 'invalid user', token: 'INSERT APPLE TOKEN HERE' }, + { clientId: 'INSERT CLIENT ID HERE' } ); fail(); } catch (e) {