Skip to content

Commit

Permalink
feat: refactor unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
perrylson committed Oct 3, 2024
1 parent 19b3884 commit 98f2519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-efs/test/access-point.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test('throw when client token has a length that is less than 1', () => {
test('throw when client token has a length that is greater than 64', () => {
expect(() => new AccessPoint(stack, 'MyAccessPoint', {
fileSystem,
clientToken: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
clientToken: 'a'.repeat(65),
},
)).toThrow(/The length of \'clientToken\' must range from 1 to 64 characters, got: 65 characters/);
});
Expand Down

0 comments on commit 98f2519

Please sign in to comment.