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\"}')); +});