Skip to content

Commit 0580dd6

Browse files
CarsonFbryanjnelson
andcommitted
Loosen test constraint on invalid project references
This is compatible with both current messages and new standardized EdgeDB messages Co-authored-by: Bryan Nelson <[email protected]>
1 parent a924dd5 commit 0580dd6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/engagement.e2e-spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,9 @@ describe('Engagement e2e', () => {
811811
mentorId: mentor.id,
812812
}),
813813
).rejects.toThrowGqlError(
814-
errors.notFound({ message: 'Could not find project' }),
814+
errors.notFound({
815+
message: expect.stringMatching(/Could not find project/i),
816+
}),
815817
);
816818
await expect(
817819
createInternshipEngagement(app, {
@@ -863,7 +865,9 @@ describe('Engagement e2e', () => {
863865
languageId: language.id,
864866
}),
865867
).rejects.toThrowGqlError(
866-
errors.notFound({ message: 'Could not find project' }),
868+
errors.notFound({
869+
message: expect.stringMatching(/Could not find project/i),
870+
}),
867871
);
868872
await expect(
869873
createLanguageEngagement(app, {

0 commit comments

Comments
 (0)