Skip to content

Commit

Permalink
fix(import-auth): headless interface test (#8402)
Browse files Browse the repository at this point in the history
Co-authored-by: Abhishek Raj <rjabhi@amazon.com>
  • Loading branch information
abhi7cr and Abhishek Raj committed Oct 21, 2021
1 parent 8ce6e62 commit 538eafc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -2,7 +2,6 @@

exports[`validates import auth headless request with a resolved promise when a valid payload with identityPoolId is not supplied 1`] = `
Object {
"identityPoolId": "333",
"nativeClientId": "222",
"userPoolId": "123",
"version": 1,
Expand Down
Expand Up @@ -8,8 +8,8 @@ describe('validates import auth headless request', () => {
test.each([
['identityPoolId is supplied', 'validRequest.json'],
['identityPoolId is not supplied', 'validRequest.identityPoolId.missing.json'],
])('with a resolved promise when a valid payload with %s', async () => {
const rawRequest = fs.readFileSync(path.join(importAuthAssetsRoot, 'validRequest.json'), 'utf8');
])('with a resolved promise when a valid payload with %s', async (_, fileName: string) => {
const rawRequest = fs.readFileSync(path.join(importAuthAssetsRoot, fileName), 'utf8');
const result = await validateImportAuthRequest(rawRequest);
expect(result).toMatchSnapshot();
});
Expand Down

0 comments on commit 538eafc

Please sign in to comment.