From 70091771b6ec4c0e26ff2dd69e02889660fa0b5d Mon Sep 17 00:00:00 2001 From: Boshen Date: Wed, 28 Aug 2024 20:50:00 +0800 Subject: [PATCH] test(parser): fix incorrect flow error test --- crates/oxc_parser/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/oxc_parser/src/lib.rs b/crates/oxc_parser/src/lib.rs index 931516145..9641d0caf 100644 --- a/crates/oxc_parser/src/lib.rs +++ b/crates/oxc_parser/src/lib.rs @@ -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"); }