Skip to content

Commit

Permalink
feat(rome_js_parser): EcmaScript @decorators rome#4252
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Apr 23, 2023
1 parent 922b815 commit 428e513
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions crates/rome_js_parser/src/tests.rs
Expand Up @@ -392,11 +392,16 @@ fn diagnostics_print_correctly() {
#[ignore]
#[test]
pub fn quick_test() {
let code = r"
@first.field @second @(() => decorator)()
export default class Bar {}
let code = r#"
[
@(decorators[first])
class {
method() {}
},
]
";
"#;
let root = parse(code, SourceType::ts());
let syntax = root.syntax();

Expand Down

0 comments on commit 428e513

Please sign in to comment.