-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(appsync): Not to throw an Error even if 'additionalAuthorizationM…
- Loading branch information
1 parent
5053eb7
commit 82ba1f3
Showing
2 changed files
with
24 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
import '@aws-cdk/assert/jest'; | ||
import {} from '../lib'; | ||
import * as cdk from '@aws-cdk/core'; | ||
import * as path from 'path'; | ||
import * as appsync from '../lib'; | ||
|
||
test('No tests are specified for this package', () => { | ||
expect(true).toBe(true); | ||
test('should not throw an Error', () => { | ||
// Given | ||
const stack = new cdk.Stack(); | ||
|
||
// When | ||
const when = () => { | ||
new appsync.GraphQLApi(stack, 'api', { | ||
authorizationConfig: {}, | ||
name: 'api', | ||
schemaDefinitionFile: path.join(__dirname, 'schema.graphql'), | ||
}); | ||
}; | ||
|
||
// Then | ||
expect(when).not.toThrow(); | ||
}); |