mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
test(transformer/replace-global-defines): remove panicking test (#7838)
Follow-on after #7811. Remove the panicking test. It *does* currently cause a panic if replacement contains scopes (e.g. `() => 123`) but that's a bug. So we shouldn't have a test saying that it *should* panic.
This commit is contained in:
parent
e812ae3117
commit
d72c888371
1 changed files with 0 additions and 7 deletions
|
|
@ -283,10 +283,3 @@ log(__MEMBER__);
|
|||
let snapshot = visualizer.into_visualizer_text();
|
||||
insta::assert_snapshot!("test_sourcemap", snapshot);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic(expected = "")]
|
||||
fn test_complex() {
|
||||
let config = ReplaceGlobalDefinesConfig::new(&[("__DEF__", "((() => {})())")]).unwrap();
|
||||
test("__DEF__", "1", config.clone());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue