The actual snapshot is saved in prefer-code-point.mjs.snap
.
Generated by AVA.
1 | string.charCodeAt(index)
Error 1/1
`␊
> 1 | string.charCodeAt(index)␊
| ^^^^^^^^^^ Prefer \`String#codePointAt()\` over \`String#charCodeAt()\`.␊
␊
--------------------------------------------------------------------------------␊
Suggestion 1/1: Use \`String#codePointAt()\`.␊
1 | string.codePointAt(index)␊
`
1 | (( (( string )).charCodeAt( ((index)), )))
Error 1/1
`␊
> 1 | (( (( string )).charCodeAt( ((index)), )))␊
| ^^^^^^^^^^ Prefer \`String#codePointAt()\` over \`String#charCodeAt()\`.␊
␊
--------------------------------------------------------------------------------␊
Suggestion 1/1: Use \`String#codePointAt()\`.␊
1 | (( (( string )).codePointAt( ((index)), )))␊
`
1 | String.fromCharCode( code )
Error 1/1
`␊
> 1 | String.fromCharCode( code )␊
| ^^^^^^^^^^^^ Prefer \`String.fromCodePoint()\` over \`String.fromCharCode()\`.␊
␊
--------------------------------------------------------------------------------␊
Suggestion 1/1: Use \`String.fromCodePoint()\`.␊
1 | String.fromCodePoint( code )␊
`
1 | (( (( String )).fromCharCode( ((code)), ) ))
Error 1/1
`␊
> 1 | (( (( String )).fromCharCode( ((code)), ) ))␊
| ^^^^^^^^^^^^ Prefer \`String.fromCodePoint()\` over \`String.fromCharCode()\`.␊
␊
--------------------------------------------------------------------------------␊
Suggestion 1/1: Use \`String.fromCodePoint()\`.␊
1 | (( (( String )).fromCodePoint( ((code)), ) ))␊
`