diff --git a/crates/rome_js_formatter/tests/quick_test.rs b/crates/rome_js_formatter/tests/quick_test.rs index 4c083f72ae4..b79ff6704b9 100644 --- a/crates/rome_js_formatter/tests/quick_test.rs +++ b/crates/rome_js_formatter/tests/quick_test.rs @@ -13,109 +13,12 @@ mod language { // use this test check if your snippet prints as you wish, without using a snapshot fn quick_test() { let src = r#" -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` - - - Web Components are ${ - this.mood - - }! - `; +@foo +export default class MyComponent { + @task + *foo() { } } - -customElements.define('my-element', MyElement); - -const someHtml1 = html`
hello ${world}
`; -const someHtml2 = /* HTML */ `
hello ${world}
`; - -html`` - -html``; - -html` <${Footer} >footer content ` - -html`
` - -html` -
-` - -html`onetwothree`; - -function HelloWorld() { - return html` -

Bar List

- ${bars.map(bar => html` -

${bar}

- `)} - `; -} - -const trickyParens = html``; -const nestedFun = /* HTML */ `${outerExpr( 1 )} `; - -const closingScriptTagShouldBeEscapedProperly = /* HTML */ ` - -`; - -const closingScriptTag2 = /* HTML */ `