changed incorrect key name in apple auth adapter tests (#6861)

* replaced client_id with clientId

* retroactively added breaking change to change log
This commit is contained in:
Manuel
2020-08-25 17:24:53 +02:00
committed by GitHub
parent 5743d752f7
commit 983121581d
2 changed files with 8 additions and 4 deletions

View File

@@ -1165,7 +1165,7 @@ describe('apple signin auth adapter', () => {
it('(using client id as array) should throw error with missing id_token', async () => {
try {
await apple.validateAuthData({}, { client_id: ['secret'] });
await apple.validateAuthData({}, { clientId: ['secret'] });
fail();
} catch (e) {
expect(e.message).toBe('id token is invalid for this user.');
@@ -1249,7 +1249,7 @@ describe('apple signin auth adapter', () => {
try {
await apple.validateAuthData(
{ id: 'the_user_id', token: 'the_token' },
{ client_id: ['secret'] }
{ clientId: ['secret'] }
);
fail();
} catch (e) {
@@ -1411,7 +1411,7 @@ describe('apple signin auth adapter', () => {
// TODO: figure out a way to generate our own apple signed tokens, perhaps with a parse apple account
// and a private key
xit('(using client id as string) should throw error with invalid jwt client_id', async () => {
xit('(using client id as string) should throw error with invalid jwt clientId', async () => {
try {
await apple.validateAuthData(
{ id: 'INSERT ID HERE', token: 'INSERT APPLE TOKEN HERE' },
@@ -1425,7 +1425,7 @@ describe('apple signin auth adapter', () => {
// TODO: figure out a way to generate our own apple signed tokens, perhaps with a parse apple account
// and a private key
xit('(using client id as array) should throw error with invalid jwt client_id', async () => {
xit('(using client id as array) should throw error with invalid jwt clientId', async () => {
try {
await apple.validateAuthData(
{ id: 'INSERT ID HERE', token: 'INSERT APPLE TOKEN HERE' },