123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`strings.js 1`] = `
- [
- "abc",
- 'abc',
- '\\'',
- '"',
- '\\"',
- '\\\\"',
- "'",
- "\\'",
- "\\\\'",
- "'\\"",
- '\\'"',
- '\\\\',
- "\\\\",
- '\\0',
- '🐶',
- '\\uD801\\uDC28',
- ];
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [
- "abc",
- "abc",
- "'",
- '"',
- '"',
- '\\\\"',
- "'",
- "'",
- "\\\\'",
- "'\\"",
- "'\\"",
- "\\\\",
- "\\\\",
- "\\0",
- "🐶",
- "\\uD801\\uDC28"
- ];
- `;
- exports[`strings.js 2`] = `
- [
- "abc",
- 'abc',
- '\\'',
- '"',
- '\\"',
- '\\\\"',
- "'",
- "\\'",
- "\\\\'",
- "'\\"",
- '\\'"',
- '\\\\',
- "\\\\",
- '\\0',
- '🐶',
- '\\uD801\\uDC28',
- ];
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [
- "abc",
- "abc",
- "'",
- '"',
- '"',
- '\\\\"',
- "'",
- "'",
- "\\\\'",
- "'\\"",
- "'\\"",
- "\\\\",
- "\\\\",
- "\\0",
- "🐶",
- "\\uD801\\uDC28",
- ];
- `;
- exports[`template-literals.js 1`] = `
- foo(\`a long string \${ 1 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 } with expr\`);
- const x = \`a long string \${ 1 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + ( function() {return 3 })() + 3 + 2 + 3 + 2 + 3 } with expr\`;
- foo(\`a long string \${ 1 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + ( function() {
- const x = 5;
- return x;
- })() + 3 + 2 + 3 + 2 + 3 } with expr\`);
- pipe.write(
- \`\\n \${chalk.dim(\`\\u203A and \${more} more \${more} more \${more} more \${more}\`)}\`,
- );
- // https://github.com/prettier/prettier/issues/1662#issue-230406820
- const content = \`
- const env = \${ JSON.stringify({
- assetsRootUrl: env.assetsRootUrl,
- env: env.env,
- role: "client",
- adsfafa: "sdfsdff",
- asdfasff: "wefwefw",
- fefef: "sf sdfs fdsfdsf s dfsfds"
- }, null, "\\t") });
- \`;
- // https://github.com/prettier/prettier/issues/821#issue-210557749
- f(\`\${{
- a: 4,
- b: 9,
- }}\`);
- // https://github.com/prettier/prettier/issues/1183#issue-220863505
- const makeBody = (store, assets, html) =>
- \`<!doctype html>\${
- ReactDOMServer.renderToStaticMarkup(
- <Html
- headScripts={compact([ assets.javascript.head ])}
- headStyles={compact([ assets.styles.body, assets.styles.head ])}
- bodyScripts={compact([ assets.javascript.body ])}
- bodyStyles={[]}
- stringScripts={[
- \`window.__INITIAL_STATE__ = \${
- JSON.stringify(store.getState(), null, 2)
- };\`,
- ]}
- content={[
- { id: 'app-container', dangerouslySetInnerHTML: { __html: html } },
- ]}
- />
- )
- }\`
- // https://github.com/prettier/prettier/issues/1626#issue-229655106
- const Bar = styled.div\`
- color: \${props => (props.highlight.length > 0 ? palette(['text', 'dark', 'tertiary'])(props) : palette(['text', 'dark', 'primary'])(props))} !important;
- \`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- foo(
- \`a long string \${1 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3} with expr\`
- );
- const x = \`a long string \${1 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- (function() {
- return 3;
- })() +
- 3 +
- 2 +
- 3 +
- 2 +
- 3} with expr\`;
- foo(
- \`a long string \${1 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- (function() {
- const x = 5;
- return x;
- })() +
- 3 +
- 2 +
- 3 +
- 2 +
- 3} with expr\`
- );
- pipe.write(
- \`\\n \${chalk.dim(
- \`\\u203A and \${more} more \${more} more \${more} more \${more}\`
- )}\`
- );
- // https://github.com/prettier/prettier/issues/1662#issue-230406820
- const content = \`
- const env = \${JSON.stringify(
- {
- assetsRootUrl: env.assetsRootUrl,
- env: env.env,
- role: "client",
- adsfafa: "sdfsdff",
- asdfasff: "wefwefw",
- fefef: "sf sdfs fdsfdsf s dfsfds"
- },
- null,
- "\\t"
- )});
- \`;
- // https://github.com/prettier/prettier/issues/821#issue-210557749
- f(
- \`\${{
- a: 4,
- b: 9
- }}\`
- );
- // https://github.com/prettier/prettier/issues/1183#issue-220863505
- const makeBody = (store, assets, html) =>
- \`<!doctype html>\${ReactDOMServer.renderToStaticMarkup(
- <Html
- headScripts={compact([assets.javascript.head])}
- headStyles={compact([assets.styles.body, assets.styles.head])}
- bodyScripts={compact([assets.javascript.body])}
- bodyStyles={[]}
- stringScripts={[
- \`window.__INITIAL_STATE__ = \${JSON.stringify(
- store.getState(),
- null,
- 2
- )};\`
- ]}
- content={[
- { id: "app-container", dangerouslySetInnerHTML: { __html: html } }
- ]}
- />
- )}\`;
- // https://github.com/prettier/prettier/issues/1626#issue-229655106
- const Bar = styled.div\`
- color: \${props =>
- props.highlight.length > 0
- ? palette(["text", "dark", "tertiary"])(props)
- : palette(["text", "dark", "primary"])(props)} !important;
- \`;
- `;
- exports[`template-literals.js 2`] = `
- foo(\`a long string \${ 1 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 } with expr\`);
- const x = \`a long string \${ 1 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + ( function() {return 3 })() + 3 + 2 + 3 + 2 + 3 } with expr\`;
- foo(\`a long string \${ 1 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + ( function() {
- const x = 5;
- return x;
- })() + 3 + 2 + 3 + 2 + 3 } with expr\`);
- pipe.write(
- \`\\n \${chalk.dim(\`\\u203A and \${more} more \${more} more \${more} more \${more}\`)}\`,
- );
- // https://github.com/prettier/prettier/issues/1662#issue-230406820
- const content = \`
- const env = \${ JSON.stringify({
- assetsRootUrl: env.assetsRootUrl,
- env: env.env,
- role: "client",
- adsfafa: "sdfsdff",
- asdfasff: "wefwefw",
- fefef: "sf sdfs fdsfdsf s dfsfds"
- }, null, "\\t") });
- \`;
- // https://github.com/prettier/prettier/issues/821#issue-210557749
- f(\`\${{
- a: 4,
- b: 9,
- }}\`);
- // https://github.com/prettier/prettier/issues/1183#issue-220863505
- const makeBody = (store, assets, html) =>
- \`<!doctype html>\${
- ReactDOMServer.renderToStaticMarkup(
- <Html
- headScripts={compact([ assets.javascript.head ])}
- headStyles={compact([ assets.styles.body, assets.styles.head ])}
- bodyScripts={compact([ assets.javascript.body ])}
- bodyStyles={[]}
- stringScripts={[
- \`window.__INITIAL_STATE__ = \${
- JSON.stringify(store.getState(), null, 2)
- };\`,
- ]}
- content={[
- { id: 'app-container', dangerouslySetInnerHTML: { __html: html } },
- ]}
- />
- )
- }\`
- // https://github.com/prettier/prettier/issues/1626#issue-229655106
- const Bar = styled.div\`
- color: \${props => (props.highlight.length > 0 ? palette(['text', 'dark', 'tertiary'])(props) : palette(['text', 'dark', 'primary'])(props))} !important;
- \`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- foo(
- \`a long string \${1 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3} with expr\`,
- );
- const x = \`a long string \${1 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- (function() {
- return 3;
- })() +
- 3 +
- 2 +
- 3 +
- 2 +
- 3} with expr\`;
- foo(
- \`a long string \${1 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- 3 +
- 2 +
- (function() {
- const x = 5;
- return x;
- })() +
- 3 +
- 2 +
- 3 +
- 2 +
- 3} with expr\`,
- );
- pipe.write(
- \`\\n \${chalk.dim(
- \`\\u203A and \${more} more \${more} more \${more} more \${more}\`,
- )}\`,
- );
- // https://github.com/prettier/prettier/issues/1662#issue-230406820
- const content = \`
- const env = \${JSON.stringify(
- {
- assetsRootUrl: env.assetsRootUrl,
- env: env.env,
- role: "client",
- adsfafa: "sdfsdff",
- asdfasff: "wefwefw",
- fefef: "sf sdfs fdsfdsf s dfsfds",
- },
- null,
- "\\t",
- )});
- \`;
- // https://github.com/prettier/prettier/issues/821#issue-210557749
- f(
- \`\${{
- a: 4,
- b: 9,
- }}\`,
- );
- // https://github.com/prettier/prettier/issues/1183#issue-220863505
- const makeBody = (store, assets, html) =>
- \`<!doctype html>\${ReactDOMServer.renderToStaticMarkup(
- <Html
- headScripts={compact([assets.javascript.head])}
- headStyles={compact([assets.styles.body, assets.styles.head])}
- bodyScripts={compact([assets.javascript.body])}
- bodyStyles={[]}
- stringScripts={[
- \`window.__INITIAL_STATE__ = \${JSON.stringify(
- store.getState(),
- null,
- 2,
- )};\`,
- ]}
- content={[
- { id: "app-container", dangerouslySetInnerHTML: { __html: html } },
- ]}
- />,
- )}\`;
- // https://github.com/prettier/prettier/issues/1626#issue-229655106
- const Bar = styled.div\`
- color: \${props =>
- props.highlight.length > 0
- ? palette(["text", "dark", "tertiary"])(props)
- : palette(["text", "dark", "primary"])(props)} !important;
- \`;
- `;
|