Skip to content

Commit

Permalink
fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Aug 10, 2024
1 parent c49cc99 commit 22f1f4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions crates/oxc_linter/src/rules/nextjs/google_font_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ fn test() {
];

let fail = vec![
r#"
import Head from "next/head";
r#"import Head from "next/head";
export default Test = () => {
return (
Expand Down
10 changes: 5 additions & 5 deletions crates/oxc_linter/src/snapshots/google_font_display.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
source: crates/oxc_linter/src/tester.rs
---
eslint-plugin-next(google-font-display): A font-display parameter is missing (adding `&display=optional` is recommended).
╭─[google_font_display.tsx:6:16]
5 <Head>
6 │ <link
· ────
7 href="https://fonts.googleapis.com/css2?family=Krona+One"
╭─[google_font_display.tsx:6:7]
5 │ <Head>
6 │ <link
· ────
7 href="https://fonts.googleapis.com/css2?family=Krona+One"
╰────
help: See https://nextjs.org/docs/messages/google-font-display

Expand Down

0 comments on commit 22f1f4e

Please sign in to comment.