Skip to content

Commit de45143

Browse files
committed
fix: update message when expecting s3 to throw
1 parent f6f5fe9 commit de45143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/amplify-e2e-tests/src/__tests__/auth/user-groups-s3-access.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('user group tests', () => {
100100
Key: s3key,
101101
}),
102102
),
103-
).rejects.toThrow('Access Denied');
103+
).rejects.toThrow(/not authorized to perform/);
104104
await expect(
105105
s3Client2.send(
106106
new PutObjectCommand({
@@ -109,7 +109,7 @@ describe('user group tests', () => {
109109
Body: s3val,
110110
}),
111111
),
112-
).rejects.toThrow('Access Denied');
112+
).rejects.toThrow(/not authorized to perform/);
113113
await signOutUser();
114114
});
115115
});

0 commit comments

Comments
 (0)