Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.86 KB

prefer-code-point.mjs.md

File metadata and controls

61 lines (47 loc) · 1.86 KB

Snapshot report for test/prefer-code-point.mjs

The actual snapshot is saved in prefer-code-point.mjs.snap.

Generated by AVA.

Invalid #1

  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)␊
`

Invalid #2

  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)), )))␊
`

Invalid #3

  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 )␊
`

Invalid #4

  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)), ) ))␊
`