Skip to content

Commit

Permalink
minor fix to the test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
C0W0 committed Aug 1, 2023
1 parent 0a48dd5 commit 00443a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/macro_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1039,15 +1039,15 @@ 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");
const message = "hello macro";
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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 00443a7

Please sign in to comment.