The actual snapshot is saved in no-length-as-slice-end.mjs.snap
.
Generated by AVA.
Input
`␊
1 | foo.slice(1, foo.length)␊
`
Output
`␊
1 | foo.slice(1)␊
`
Error 1/1
`␊
> 1 | foo.slice(1, foo.length)␊
| ^^^^^^^^^^ Passing \`….length\` as the \`end\` argument is unnecessary.␊
`
Input
`␊
1 | foo?.slice(1, foo.length)␊
`
Output
`␊
1 | foo?.slice(1)␊
`
Error 1/1
`␊
> 1 | foo?.slice(1, foo.length)␊
| ^^^^^^^^^^ Passing \`….length\` as the \`end\` argument is unnecessary.␊
`
Input
`␊
1 | foo.slice(1, foo.length,)␊
`
Output
`␊
1 | foo.slice(1,)␊
`
Error 1/1
`␊
> 1 | foo.slice(1, foo.length,)␊
| ^^^^^^^^^^ Passing \`….length\` as the \`end\` argument is unnecessary.␊
`
Input
`␊
1 | foo.slice(1, (( foo.length )))␊
`
Output
`␊
1 | foo.slice(1)␊
`
Error 1/1
`␊
> 1 | foo.slice(1, (( foo.length )))␊
| ^^^^^^^^^^ Passing \`….length\` as the \`end\` argument is unnecessary.␊
`
Input
`␊
1 | foo.slice(1, foo?.length)␊
`
Output
`␊
1 | foo.slice(1)␊
`
Error 1/1
`␊
> 1 | foo.slice(1, foo?.length)␊
| ^^^^^^^^^^^ Passing \`….length\` as the \`end\` argument is unnecessary.␊
`
Input
`␊
1 | foo?.slice(1, foo?.length)␊
`
Output
`␊
1 | foo?.slice(1)␊
`
Error 1/1
`␊
> 1 | foo?.slice(1, foo?.length)␊
| ^^^^^^^^^^^ Passing \`….length\` as the \`end\` argument is unnecessary.␊
`