Skip to content

Commit

Permalink
updated tests, still requires manual entry in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderratedDev committed Mar 21, 2020
1 parent 3517725 commit b4a2cbd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/AuthenticationAdapters.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] }
);
Expand All @@ -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' }
);
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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) {
Expand Down

0 comments on commit b4a2cbd

Please sign in to comment.