diff --git a/src/transform.rs b/src/transform.rs index 322d13e..918caf6 100644 --- a/src/transform.rs +++ b/src/transform.rs @@ -258,3 +258,31 @@ test!( r#"let x = "#, r#"let x = template(`Hello\\nWorld\\u1234`, { eval() { return eval(arguments[0]) }})"# ); + +test!( + Default::default(), + |_| as_folder(TransformVisitor::new( + &Ident::new("template".into(), Default::default()), + None, + )), + handles_missing_semicolon_in_class, + r#" + const ListItem = // no semi + + + "#, + r#"class X { + static { + template(`hi`, { component: this, eval() { return eval(arguments[0]) }},); + } + get whatever() {} + } + "# +); +