-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Remove ExternalApi's dependence on Customer (EN-1254) (
#17)
- Loading branch information
Showing
8 changed files
with
45 additions
and
20 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 |
---|---|---|
|
@@ -18,7 +18,7 @@ describe('When searching for external APIs by name', () => { | |
it('should get a list of external APIs', () => { | ||
api.logIn({ username: '[email protected]', password: 'securepassword' }); | ||
|
||
const externalApisPromise = api.customer('SYNC').externalApis() | ||
const externalApisPromise = api.externalApis() | ||
.withQuery('arr') // External APIs containing "arr" in their name | ||
.getPage() | ||
.then(page => page.list) | ||
|
@@ -39,7 +39,7 @@ describe('When retrieving an external API by ID', () => { | |
it('should get an external API', () => { | ||
api.logIn({ username: '[email protected]', password: 'securepassword' }); | ||
|
||
const externalApiPromise = api.customer('SYNC').externalApi(1) | ||
const externalApiPromise = api.externalApi(1) | ||
.fetch() | ||
.then(externalApi => externalApi); // Do things with external API | ||
|
||
|
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