Skip to content

Commit 45fd6b4

Browse files
committed
fix: update string interpolation escaping in formatTreeNode tests
- modify test to correctly escape template string interpolation marker - ensure output matches expected format for string values
1 parent 5927586 commit 45fd6b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/formatter/formatTreeNode.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bar`);
7777

7878
it('should escape template string interpolation marker', () => {
7979
expect(formatTreeNode({ type: 'string', value: '${' }, true, 0, {})).toBe(
80-
'{`\\${`}'
80+
['{`\\', '{`}'].join('$')
8181
);
8282
});
8383
});

0 commit comments

Comments
 (0)