Skip to content

Commit c9536ed

Browse files
committed
Add complex test case
1 parent 8871c30 commit c9536ed

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`JavaScript output: transformed source code 1`] = `"module.exports = <div>foo{\\"\\\\n\\"}{['bar', '123\\\\nabc'.split('\\\\n').join('.')].join('')}</div>;"`;
3+
exports[`JavaScript output: transformed source code 1`] = `"module.exports = <div>foo{\\"\\\\n\\"}{['bar', '123\\\\n\\\\'abc\\\\n'.split('\\\\n').join('\\"').split(\\"'\\").join('@')].join('')}</div>;"`;
44
55
exports[`html output: generated html 1`] = `
66
<div>
77
foo
8+
89
9-
10-
bar123.abc
10+
bar123"@abc"
1111
</div>
1212
`;
1313
1414
exports[`static html output: static html 1`] = `
1515
"<div>foo
16-
bar123.abc</div>"
16+
bar123&quot;@abc&quot;</div>"
1717
`;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = pug`div.\n foo\n bar${'123\nabc'.split('\n').join('.')}`;
1+
module.exports = pug`div.\n foo\n bar${'123\n\'abc\n'.split('\n').join('"').split("'").join('@')}`;

0 commit comments

Comments
 (0)