-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a255c10
commit 7ed6806
Showing
14 changed files
with
74 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ const expectedEmail = '[email protected]'; | |
|
||
test('Generates JSON RPC pending for otp-input-sent', async () => { | ||
const magic = createMagicSDK(); | ||
magic.auth.overlay.post = jest.fn().mockImplementation(() => new Promise(() => {})); | ||
magic.auth.overlay.post = jest.fn().mockImplementation(() => new Promise(() => { /* noop */ })); | ||
const createIntermediaryEventFn = jest.fn(); | ||
magic.auth.createIntermediaryEvent = jest.fn().mockImplementation(() => createIntermediaryEventFn); | ||
|
||
|
@@ -29,7 +29,7 @@ test('Generates JSON RPC pending for otp-input-sent', async () => { | |
|
||
test('Generates JSON RPC pending for verify-mfa-code', () => { | ||
const magic = createMagicSDK(); | ||
magic.auth.overlay.post = jest.fn().mockImplementation(() => new Promise(() => {})); | ||
magic.auth.overlay.post = jest.fn().mockImplementation(() => new Promise(() => { /* noop */ })); | ||
const createIntermediaryEventFn = jest.fn(); | ||
magic.auth.createIntermediaryEvent = jest.fn().mockImplementation(() => createIntermediaryEventFn); | ||
|
||
|
@@ -49,7 +49,7 @@ test('Generates JSON RPC pending for verify-mfa-code', () => { | |
|
||
test('Generates JSON RPC pending for lost-device', () => { | ||
const magic = createMagicSDK(); | ||
magic.auth.overlay.post = jest.fn().mockImplementation(() => new Promise(() => {})); | ||
magic.auth.overlay.post = jest.fn().mockImplementation(() => new Promise(() => { /* noop */ })); | ||
const createIntermediaryEventFn = jest.fn(); | ||
magic.auth.createIntermediaryEvent = jest.fn().mockImplementation(() => createIntermediaryEventFn); | ||
|
||
|
@@ -67,7 +67,7 @@ test('Generates JSON RPC pending for lost-device', () => { | |
|
||
test('Generates JSON RPC pending for verify-recovery-code', () => { | ||
const magic = createMagicSDK(); | ||
magic.auth.overlay.post = jest.fn().mockImplementation(() => new Promise(() => {})); | ||
magic.auth.overlay.post = jest.fn().mockImplementation(() => new Promise(() => { /* noop */ })); | ||
const createIntermediaryEventFn = jest.fn(); | ||
magic.auth.createIntermediaryEvent = jest.fn().mockImplementation(() => createIntermediaryEventFn); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.