From 1794dc46c3f48c39f6a499a72cdaaeacb4e5b1f3 Mon Sep 17 00:00:00 2001 From: Calvin Combs <66279577+comcalvi@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:21:17 -0700 Subject: [PATCH] chore(diff): fomatter unit test fails locally (#31396) ### Issue # (if applicable) N/A ### Reason for this change `format value can handle partial json strings` fails the repo build on my machine. This doesn't happen at the package level, for some reason. ### Description of changes Made it pass the repo build. ### Description of how you validated changes N/A ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/@aws-cdk/cloudformation-diff/test/format.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/cloudformation-diff/test/format.test.ts b/packages/@aws-cdk/cloudformation-diff/test/format.test.ts index 6cd6d23d38b5f..6c6a8c30aeb08 100644 --- a/packages/@aws-cdk/cloudformation-diff/test/format.test.ts +++ b/packages/@aws-cdk/cloudformation-diff/test/format.test.ts @@ -5,5 +5,5 @@ const formatter = new Formatter(process.stdout, {}); test('format value can handle partial json strings', () => { const output = formatter.formatValue({ nice: 'great', partialJson: '{"wow": "great' }, chalk.red); - expect(output).toEqual('{\"nice\":\"great\",\"partialJson\":\"{\\\"wow\\\": \\\"great\"}'); -}); \ No newline at end of file + expect(output).toEqual(chalk.red('{\"nice\":\"great\",\"partialJson\":\"{\\\"wow\\\": \\\"great\"}')); +});