mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
test(parser): fix incorrect flow error test
This commit is contained in:
parent
fb75d2576b
commit
70091771b6
1 changed files with 1 additions and 2 deletions
|
|
@ -457,11 +457,10 @@ mod test {
|
|||
*/
|
||||
asdf asdf
|
||||
",
|
||||
"/* @flow */ let a; let a;",
|
||||
"/* @flow */ super;",
|
||||
];
|
||||
for source in sources {
|
||||
let ret = Parser::new(&allocator, source, source_type).parse();
|
||||
assert!(ret.program.is_empty());
|
||||
assert_eq!(ret.errors.len(), 1);
|
||||
assert_eq!(ret.errors.first().unwrap().to_string(), "Flow is not supported");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue