From 00443a7ee102f9479903ef3aa8dc053c1540e930 Mon Sep 17 00:00:00 2001 From: Terry Zha Date: Mon, 31 Jul 2023 23:33:01 -0400 Subject: [PATCH] minor fix to the test cases --- core/src/macro_executor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/macro_executor.rs b/core/src/macro_executor.rs index cf0e4ec6..f37f7504 100644 --- a/core/src/macro_executor.rs +++ b/core/src/macro_executor.rs @@ -1039,7 +1039,7 @@ mod tests { #[test] fn test_macro_config_extraction() { - // should return None if no there is no class definition + // should return None if no there is no config definition let result = extract_config_code( r#" console.log("hello world"); @@ -1047,7 +1047,7 @@ mod tests { console.debug(message); "# ); - assert!(!result.is_err()); + assert!(result.is_ok()); assert_eq!(result.unwrap(), None); // should return an error if the instance declaration is missing @@ -1079,7 +1079,7 @@ mod tests { console.debug(config); "# ); - assert!(!result.is_err()); + assert!(result.is_ok()); let (name, code) = result.unwrap().unwrap(); assert_eq!( &code,