Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
comcalvi committed Sep 10, 2024
1 parent af9e6ba commit 0a46ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cloudformation-diff/test/format.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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\"}');
expect(output).toEqual(chalk.red('{\"nice\":\"great\",\"partialJson\":\"{\\\"wow\\\": \\\"great\"}'));
});

0 comments on commit 0a46ee2

Please sign in to comment.