Skip to content

Commit

Permalink
[MINI-5825][MINI-5829] Supports multiple emails: SDK & JS Sample app …
Browse files Browse the repository at this point in the history
…changes (#236)

* add changes for bridge

* add sample app change

* tabs implementation

* circleci fix attempt
  • Loading branch information
khairul-alam-licon authored Dec 22, 2022
1 parent e114177 commit 2529610
Show file tree
Hide file tree
Showing 4 changed files with 305 additions and 216 deletions.
1 change: 1 addition & 0 deletions js-miniapp-bridge/src/types/contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export interface Contact {
id: string;
name?: string;
email?: string;
allEmailList?: string[];
}
3 changes: 2 additions & 1 deletion js-miniapp-bridge/test/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading

0 comments on commit 2529610

Please sign in to comment.