mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
chore(rule_generator): preserve escaped string in test code (#160)
This commit is contained in:
parent
1ea463e0bb
commit
bc2c175472
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ fn parse_test_code<'a>(source_text: &'a str, expr: &'a Expression) -> Option<Cow
|
|||
let option_code = option_code.map_or(Cow::Borrowed("None"), |option_code| {
|
||||
Cow::Owned(format!("Some(serde_json::json!({option_code}))"))
|
||||
});
|
||||
Cow::Owned(format!(r#"("{test_code}", {option_code})"#))
|
||||
Cow::Owned(format!(r#"({test_code:?}, {option_code})"#))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue