Skip to content

Commit 3a7d8dc

Browse files
committed
fix: update sync validation error message for clarity
1 parent 47c6c6a commit 3a7d8dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ describe('Class: AppSyncGraphQLResolver', () => {
958958

959959
app.exceptionHandler(ValidationError, (error) => {
960960
return {
961-
message: 'Sync validation failed',
961+
message: 'This is a sync handler',
962962
details: error.message,
963963
type: 'sync_validation_error',
964964
};
@@ -976,7 +976,7 @@ describe('Class: AppSyncGraphQLResolver', () => {
976976

977977
// Assess
978978
expect(result).toEqual({
979-
message: 'Sync validation failed',
979+
message: 'This is a sync handler',
980980
details: 'Sync error test',
981981
type: 'sync_validation_error',
982982
});

0 commit comments

Comments
 (0)