Skip to content

Commit 1794dc4

Browse files
authored
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*
1 parent af9e6ba commit 1794dc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@aws-cdk/cloudformation-diff/test/format.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ const formatter = new Formatter(process.stdout, {});
55

66
test('format value can handle partial json strings', () => {
77
const output = formatter.formatValue({ nice: 'great', partialJson: '{"wow": "great' }, chalk.red);
8-
expect(output).toEqual('{\"nice\":\"great\",\"partialJson\":\"{\\\"wow\\\": \\\"great\"}');
9-
});
8+
expect(output).toEqual(chalk.red('{\"nice\":\"great\",\"partialJson\":\"{\\\"wow\\\": \\\"great\"}'));
9+
});

0 commit comments

Comments
 (0)