-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MINI-5825][MINI-5829] Supports multiple emails: SDK & JS Sample app …
…changes (#236) * add changes for bridge * add sample app change * tabs implementation * circleci fix attempt
- Loading branch information
1 parent
e114177
commit 2529610
Showing
4 changed files
with
305 additions
and
216 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ export interface Contact { | |
id: string; | ||
name?: string; | ||
email?: string; | ||
allEmailList?: string[]; | ||
} |
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 |
---|---|---|
|
@@ -623,14 +623,15 @@ describe('getContacts', () => { | |
it('will return the close status string response', () => { | ||
const bridge = new Bridge.MiniAppBridge(mockExecutor); | ||
const response = | ||
'[{"id":"id_contact","name":"Cory","email":"[email protected]"},{"id":"id_contact2","name":"Alam"},{"id":"id_contact3"}]'; | ||
'[{"id":"id_contact","name":"Cory","email":"[email protected]","allEmailList":["[email protected]", "[email protected]"]},{"id":"id_contact2","name":"Alam"},{"id":"id_contact3"}]'; | ||
mockExecutor.exec.callsArgWith(2, response); | ||
|
||
const expected = [ | ||
{ | ||
id: 'id_contact', | ||
name: 'Cory', | ||
email: '[email protected]', | ||
allEmailList: ['[email protected]', '[email protected]'], | ||
}, | ||
{ | ||
id: 'id_contact2', | ||
|
Oops, something went wrong.