Skip to content

Commit 92e4952

Browse files
Update packages/event-handler/tests/unit/appsync-graphql/AppSyncGraphQLResolver.test.ts
Co-authored-by: Andrea Amorosi <[email protected]>
1 parent 7bb5882 commit 92e4952

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/event-handler/tests/unit/appsync-graphql/AppSyncGraphQLResolver.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,10 @@ describe('Class: AppSyncGraphQLResolver', () => {
771771
// Prepare
772772
const app = new AppSyncGraphQLResolver();
773773

774-
app.exceptionHandler(errorClass, async (err) => {
774+
app.exceptionHandler(errorClass, async (err) => ({
775+
message,
776+
errorName: err.constructor.name,
777+
});
775778
return {
776779
message,
777780
errorName: err.constructor.name,

0 commit comments

Comments
 (0)