Skip to content

Commit

Permalink
Update principals.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
duranbe authored Jun 26, 2024
1 parent 17c7271 commit dfc43ce
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/aws-cdk-lib/aws-iam/test/principals.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,19 +373,11 @@ describe('deprecated ServicePrincipal behavior', () => {
});

test('Passing string with invalid pattern in AccountPrincipal constructor should throw error', () => {
<<<<<<< Updated upstream
expect(() => new iam.AccountPrincipal("123456")).toThrowError('accountId should be of type string and be composed of 12 digits');
});

test('Passing string with only letters in AccountPrincipal constructor should throw error', () => {
expect(() => new iam.AccountPrincipal("test")).toThrowError('accountId should be of type string and be composed of 12 digits');
=======
expect(() => new iam.AccountPrincipal('123456')).toThrowError('accountId should be of type string and be composed of 12 digits');
});

test('Passing string with only letters in AccountPrincipal constructor should throw error', () => {
expect(() => new iam.AccountPrincipal('test')).toThrowError('accountId should be of type string and be composed of 12 digits');
>>>>>>> Stashed changes
});

test('ServicePrincipal in agnostic stack generates lookup table', () => {
Expand Down

0 comments on commit dfc43ce

Please sign in to comment.