Skip to content

Commit

Permalink
Assert sourcemap presence
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 8, 2024
1 parent e5146d0 commit 5db6293
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ pub fn testcase(input: &str, expected: &str) -> Result<(), swc_ecma_parser::erro
format!("{}", Changeset::new(&actual_santized, &normalized_expected, "\n"))
);
}

assert!(!actual.map.is_empty(), "expected .map to not be empty");

Ok(())
}

Expand Down

0 comments on commit 5db6293

Please sign in to comment.