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:
overlookmotel 2024-12-13 12:26:40 +00:00 committed by GitHub
parent e812ae3117
commit d72c888371
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());
}