Skip to content

Latest commit

 

History

History
281 lines (212 loc) · 6.51 KB

text-encoding-identifier-case.mjs.md

File metadata and controls

281 lines (212 loc) · 6.51 KB

Snapshot report for test/text-encoding-identifier-case.mjs

The actual snapshot is saved in text-encoding-identifier-case.mjs.snap.

Generated by AVA.

Invalid #1

  1 | "UTF-8"

Error 1/1

`␊
> 1 | "UTF-8"␊
    | ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | "utf8"␊
`

Invalid #2

  1 | "utf-8"

Error 1/1

`␊
> 1 | "utf-8"␊
    | ^^^^^^^ Prefer \`utf8\` over \`utf-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`utf-8\` with \`utf8\`.␊
  1 | "utf8"␊
`

Invalid #3

  1 | 'utf-8'

Error 1/1

`␊
> 1 | 'utf-8'␊
    | ^^^^^^^ Prefer \`utf8\` over \`utf-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`utf-8\` with \`utf8\`.␊
  1 | 'utf8'␊
`

Invalid #4

  1 | "Utf8"

Error 1/1

`␊
> 1 | "Utf8"␊
    | ^^^^^^ Prefer \`utf8\` over \`Utf8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`Utf8\` with \`utf8\`.␊
  1 | "utf8"␊
`

Invalid #5

  1 | "ASCII"

Error 1/1

`␊
> 1 | "ASCII"␊
    | ^^^^^^^ Prefer \`ascii\` over \`ASCII\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`ASCII\` with \`ascii\`.␊
  1 | "ascii"␊
`

Invalid #6

  1 | fs.readFile?.(file, "UTF-8")

Error 1/1

`␊
> 1 | fs.readFile?.(file, "UTF-8")␊
    |                     ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | fs.readFile?.(file, "utf8")␊
`

Invalid #7

  1 | fs?.readFile(file, "UTF-8")

Error 1/1

`␊
> 1 | fs?.readFile(file, "UTF-8")␊
    |                    ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | fs?.readFile(file, "utf8")␊
`

Invalid #8

  1 | readFile(file, "UTF-8")

Error 1/1

`␊
> 1 | readFile(file, "UTF-8")␊
    |                ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | readFile(file, "utf8")␊
`

Invalid #9

  1 | fs.readFile(...file, "UTF-8")

Error 1/1

`␊
> 1 | fs.readFile(...file, "UTF-8")␊
    |                      ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | fs.readFile(...file, "utf8")␊
`

Invalid #10

  1 | new fs.readFile(file, "UTF-8")

Error 1/1

`␊
> 1 | new fs.readFile(file, "UTF-8")␊
    |                       ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | new fs.readFile(file, "utf8")␊
`

Invalid #11

  1 | fs.readFile(file, {encoding: "UTF-8"})

Error 1/1

`␊
> 1 | fs.readFile(file, {encoding: "UTF-8"})␊
    |                              ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | fs.readFile(file, {encoding: "utf8"})␊
`

Invalid #12

  1 | fs.readFile("UTF-8")

Error 1/1

`␊
> 1 | fs.readFile("UTF-8")␊
    |             ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | fs.readFile("utf8")␊
`

Invalid #13

  1 | fs.readFile(file, "UTF-8", () => {})

Output

`␊
  1 | fs.readFile(file, "utf8", () => {})␊
`

Error 1/1

`␊
> 1 | fs.readFile(file, "UTF-8", () => {})␊
    |                   ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊
`

Invalid #14

  1 | fs.readFileSync(file, "UTF-8")

Output

`␊
  1 | fs.readFileSync(file, "utf8")␊
`

Error 1/1

`␊
> 1 | fs.readFileSync(file, "UTF-8")␊
    |                       ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊
`

Invalid #15

  1 | fs[readFile](file, "UTF-8")

Error 1/1

`␊
> 1 | fs[readFile](file, "UTF-8")␊
    |                    ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | fs[readFile](file, "utf8")␊
`

Invalid #16

  1 | fs["readFile"](file, "UTF-8")

Error 1/1

`␊
> 1 | fs["readFile"](file, "UTF-8")␊
    |                      ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊

--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
  1 | fs["readFile"](file, "utf8")␊
`

Invalid #17

  1 | await fs.readFile(file, "UTF-8",)

Output

`␊
  1 | await fs.readFile(file, "utf8",)␊
`

Error 1/1

`␊
> 1 | await fs.readFile(file, "UTF-8",)␊
    |                         ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊
`

Invalid #18

  1 | fs.promises.readFile(file, "UTF-8",)

Output

`␊
  1 | fs.promises.readFile(file, "utf8",)␊
`

Error 1/1

`␊
> 1 | fs.promises.readFile(file, "UTF-8",)␊
    |                            ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊
`

Invalid #19

  1 | whatever.readFile(file, "UTF-8",)

Output

`␊
  1 | whatever.readFile(file, "utf8",)␊
`

Error 1/1

`␊
> 1 | whatever.readFile(file, "UTF-8",)␊
    |                         ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊
`