The actual snapshot is saved in text-encoding-identifier-case.mjs.snap
.
Generated by AVA.
1 | "UTF-8"
Error 1/1
`␊
> 1 | "UTF-8"␊
| ^^^^^^^ Prefer \`utf8\` over \`UTF-8\`.␊
␊
--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`UTF-8\` with \`utf8\`.␊
1 | "utf8"␊
`
1 | "utf-8"
Error 1/1
`␊
> 1 | "utf-8"␊
| ^^^^^^^ Prefer \`utf8\` over \`utf-8\`.␊
␊
--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`utf-8\` with \`utf8\`.␊
1 | "utf8"␊
`
1 | 'utf-8'
Error 1/1
`␊
> 1 | 'utf-8'␊
| ^^^^^^^ Prefer \`utf8\` over \`utf-8\`.␊
␊
--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`utf-8\` with \`utf8\`.␊
1 | 'utf8'␊
`
1 | "Utf8"
Error 1/1
`␊
> 1 | "Utf8"␊
| ^^^^^^ Prefer \`utf8\` over \`Utf8\`.␊
␊
--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`Utf8\` with \`utf8\`.␊
1 | "utf8"␊
`
1 | "ASCII"
Error 1/1
`␊
> 1 | "ASCII"␊
| ^^^^^^^ Prefer \`ascii\` over \`ASCII\`.␊
␊
--------------------------------------------------------------------------------␊
Suggestion 1/1: Replace \`ASCII\` with \`ascii\`.␊
1 | "ascii"␊
`
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")␊
`
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")␊
`
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")␊
`
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")␊
`
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")␊
`
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"})␊
`
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")␊
`
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\`.␊
`
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\`.␊
`
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")␊
`
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")␊
`
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\`.␊
`
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\`.␊
`
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\`.␊
`