From 01071bd2c3494f7c40b675c8880451f6e87f7c0b Mon Sep 17 00:00:00 2001 From: Sumu Date: Wed, 28 Feb 2024 11:55:14 -0500 Subject: [PATCH] Revert changes to import test expect Signed-off-by: Sumu --- packages/aws-cdk/test/diff.test.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/aws-cdk/test/diff.test.ts b/packages/aws-cdk/test/diff.test.ts index 2941f3b77cab5..a92c6d53551c3 100644 --- a/packages/aws-cdk/test/diff.test.ts +++ b/packages/aws-cdk/test/diff.test.ts @@ -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);