Skip to content

Commit

Permalink
chore: add test case for indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
koladilip committed Jun 18, 2024
1 parent b7ca7be commit 8974819
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/reverse_translator.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { JsonTemplateEngine } from './engine';

describe('reverse_translator', () => {
it('should reverse translate with indentation', () => {
const template = JsonTemplateEngine.reverseTranslate(
JsonTemplateEngine.parse(`{a: {b: {c: 1}}}`),
);
expect(template).toEqual(
'{\n "a": {\n "b": {\n "c": 1\n }\n }\n}',
);
});
});

0 comments on commit 8974819

Please sign in to comment.