mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
test(linter): fix some oxlint tests on windows (#8204)
This commit is contained in:
parent
e5ee38fdf1
commit
cb709c9d83
1 changed files with 9 additions and 4 deletions
|
|
@ -705,8 +705,10 @@ mod test {
|
|||
panic!("Expected PrintConfigResult, got {ret:?}")
|
||||
};
|
||||
|
||||
let expect_json =
|
||||
std::fs::read_to_string("fixtures/print_config/normal/expect.json").unwrap();
|
||||
#[expect(clippy::disallowed_methods)]
|
||||
let expect_json = std::fs::read_to_string("fixtures/print_config/normal/expect.json")
|
||||
.unwrap()
|
||||
.replace("\r\n", "\n");
|
||||
assert_eq!(config, expect_json.trim());
|
||||
}
|
||||
|
||||
|
|
@ -727,8 +729,11 @@ mod test {
|
|||
panic!("Expected PrintConfigResult, got {ret:?}")
|
||||
};
|
||||
|
||||
let expect_json =
|
||||
std::fs::read_to_string("fixtures/print_config/ban_rules/expect.json").unwrap();
|
||||
#[expect(clippy::disallowed_methods)]
|
||||
let expect_json = std::fs::read_to_string("fixtures/print_config/ban_rules/expect.json")
|
||||
.unwrap()
|
||||
.replace("\r\n", "\n");
|
||||
|
||||
assert_eq!(config, expect_json.trim());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue