Skip to content

Commit

Permalink
Revert changes to import test expect
Browse files Browse the repository at this point in the history
Signed-off-by: Sumu <sumughan@amazon.com>
  • Loading branch information
sumupitchayan committed Feb 28, 2024
1 parent bcb544c commit 01071bd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/aws-cdk/test/diff.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,13 @@ describe('imports', () => {
});

// THEN
let plainTextOutput = buffer.data.replace(/\x1B\[[0-?]*[ -/]*[@-~]/g, '');
expect(plainTextOutput).toContain('Stack A');
expect(plainTextOutput).toContain('Resources');
expect(plainTextOutput).toContain('[+] AWS::SQS::Queue Queue');
expect(plainTextOutput).toContain('[+] AWS::SQS::Queue Queue2');
expect(plainTextOutput).toContain('[+] AWS::S3::Bucket Bucket');
const plainTextOutput = buffer.data.replace(/\x1B\[[0-?]*[ -/]*[@-~]/g, '');
expect(plainTextOutput).toContain(`Stack A
Resources
[←] AWS::SQS::Queue Queue import
[←] AWS::SQS::Queue Queue2 import
[←] AWS::S3::Bucket Bucket import
`);

expect(buffer.data.trim()).toContain('✨ Number of stacks with differences: 1');
expect(exitCode).toBe(0);
Expand Down

0 comments on commit 01071bd

Please sign in to comment.