Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 1.45 KB

require-number-to-fixed-digits-argument.mjs.md

File metadata and controls

69 lines (47 loc) · 1.45 KB

Snapshot report for test/require-number-to-fixed-digits-argument.mjs

The actual snapshot is saved in require-number-to-fixed-digits-argument.mjs.snap.

Generated by AVA.

Invalid #1

  1 | const string = number.toFixed();

Output

`␊
  1 | const string = number.toFixed(0);␊
`

Error 1/1

`␊
> 1 | const string = number.toFixed();␊
    |                              ^^ Missing the digits argument.␊
`

Invalid #2

  1 | const string = number.toFixed( /* comment */ );

Output

`␊
  1 | const string = number.toFixed( /* comment */ 0);␊
`

Error 1/1

`␊
> 1 | const string = number.toFixed( /* comment */ );␊
    |                              ^^^^^^^^^^^^^^^^^ Missing the digits argument.␊
`

Invalid #3

  1 | Number(1).toFixed()

Output

`␊
  1 | Number(1).toFixed(0)␊
`

Error 1/1

`␊
> 1 | Number(1).toFixed()␊
    |                  ^^ Missing the digits argument.␊
`

Invalid #4

  1 | const bigNumber = new BigNumber(1); const string = bigNumber.toFixed();

Output

`␊
  1 | const bigNumber = new BigNumber(1); const string = bigNumber.toFixed(0);␊
`

Error 1/1

`␊
> 1 | const bigNumber = new BigNumber(1); const string = bigNumber.toFixed();␊
    |                                                                     ^^ Missing the digits argument.␊
`