prettier/tests/multiparser_js_html/__snapshots__/jsfmt.spec.js.snap

90 lines
1.5 KiB
Plaintext
Raw Normal View History

2018-11-04 18:03:07 +03:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`lit-html.js - babylon-verify 1`] = `
import { LitElement, html } from '@polymer/lit-element';
class MyElement extends LitElement {
static get properties() {
return {
mood: { type: String }
};
}
constructor() {
super();
this.mood = 'happy';
}
render() {
return html\`
<style
>
.mood { color: green; }
</style
>
Web Components are <span
class="mood" >\${
this.mood
}</span
>!
\`;
}
}
customElements.define('my-element', MyElement);
const someHtml1 = html\`<div > hello \${world} </div >\`;
const someHtml2 = /* HTML */ \`<div > hello \${world} </div >\`;
html\`\`
2018-11-04 18:03:07 +03:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import { LitElement, html } from "@polymer/lit-element";
class MyElement extends LitElement {
static get properties() {
return {
mood: { type: String }
};
}
constructor() {
super();
this.mood = "happy";
}
render() {
return html\`
<style>
.mood {
color: green;
}
</style>
Web Components are <span class="mood">\${this.mood}</span>!
\`;
}
}
customElements.define("my-element", MyElement);
const someHtml1 = html\`
<div>hello \${world}</div>
\`;
const someHtml2 = /* HTML */ \`
<div>hello \${world}</div>
\`;
html\`\`;
2018-11-04 18:03:07 +03:00
`;