-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(The "ensureCustomerItem backfills UserPoolId" test has been removed since we no longer require backfilling UserPoolId.)
- Loading branch information
Alex Chew
committed
Aug 30, 2019
1 parent
32a58df
commit 02551e7
Showing
6 changed files
with
118 additions
and
203 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
const confirmationStrategy = require('../index') | ||
const index = require('../index') | ||
|
||
test('should always confirm users', () => { | ||
const mockCallback = jest.fn(), | ||
event = {} | ||
|
||
confirmationStrategy.handler(event, {}, mockCallback) | ||
|
||
expect(mockCallback).toHaveBeenCalledTimes(1) | ||
expect(mockCallback).toHaveBeenCalledWith(null, { response: { autoConfirmUser: true } }) | ||
}); | ||
test('should always confirm users', async () => { | ||
const event = { | ||
userName: 'username', | ||
request: { userAttributes: {} }, | ||
} | ||
const result = await index.handler(event) | ||
expect(result).toEqual(event) | ||
}) |
21 changes: 12 additions & 9 deletions
21
lambdas/common-layer/nodejs/node_modules/dev-portal-common/customers-controller.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.