Skip to content

Commit

Permalink
feat: add snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
luhc228 authored and Boshen committed Feb 6, 2024
1 parent 7762ef0 commit 9231031
Show file tree
Hide file tree
Showing 2 changed files with 570 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/typescript/array_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -875,5 +875,5 @@ fn test() {
("const foo: ReadonlyArray<new (...args: any[]) => void> = [];", "const foo: readonly (new (...args: any[]) => void)[] = [];", Some(serde_json::json!([{"default":"array"}]))),
];

Tester::new(ArrayType::NAME, pass, fail).expect_fix(fix).test();
Tester::new(ArrayType::NAME, pass, fail).expect_fix(fix).test_and_snapshot();
}
Loading

0 comments on commit 9231031

Please sign in to comment.