The actual snapshot is saved in require-array-join-separator.mjs.snap
.
Generated by AVA.
1 | foo.join()
Output
`␊
1 | foo.join(',')␊
`
Error 1/1
`␊
> 1 | foo.join()␊
| ^^ Missing the separator argument.␊
`
1 | [].join.call(foo)
Output
`␊
1 | [].join.call(foo, ',')␊
`
Error 1/1
`␊
> 1 | [].join.call(foo)␊
| ^ Missing the separator argument.␊
`
1 | [].join.call(foo,)
Output
`␊
1 | [].join.call(foo, ',',)␊
`
Error 1/1
`␊
> 1 | [].join.call(foo,)␊
| ^ Missing the separator argument.␊
`
1 | [].join.call(foo , );
Output
`␊
1 | [].join.call(foo , ',',);␊
`
Error 1/1
`␊
> 1 | [].join.call(foo , );␊
| ^^ Missing the separator argument.␊
`
1 | Array.prototype.join.call(foo)
Output
`␊
1 | Array.prototype.join.call(foo, ',')␊
`
Error 1/1
`␊
> 1 | Array.prototype.join.call(foo)␊
| ^ Missing the separator argument.␊
`
1 | Array.prototype.join.call(foo, )
Output
`␊
1 | Array.prototype.join.call(foo, ',',)␊
`
Error 1/1
`␊
> 1 | Array.prototype.join.call(foo, )␊
| ^^ Missing the separator argument.␊
`
1 | (
2 | /**/
3 | [
4 | /**/
5 | ]
6 | /**/
7 | .
8 | /**/
9 | join
10 | /**/
11 | .
12 | /**/
13 | call
14 | /**/
15 | (
16 | /**/
17 | (
18 | /**/
19 | foo
20 | /**/
21 | )
22 | /**/
23 | ,
24 | /**/
25 | )/**/
26 | )
Output
`␊
1 | (␊
2 | /**/␊
3 | [␊
4 | /**/␊
5 | ]␊
6 | /**/␊
7 | .␊
8 | /**/␊
9 | join␊
10 | /**/␊
11 | .␊
12 | /**/␊
13 | call␊
14 | /**/␊
15 | (␊
16 | /**/␊
17 | (␊
18 | /**/␊
19 | foo␊
20 | /**/␊
21 | )␊
22 | /**/␊
23 | ,␊
24 | /**/␊
25 | ',',)/**/␊
26 | )␊
`
Error 1/1
`␊
1 | (␊
2 | /**/␊
3 | [␊
4 | /**/␊
5 | ]␊
6 | /**/␊
7 | .␊
8 | /**/␊
9 | join␊
10 | /**/␊
11 | .␊
12 | /**/␊
13 | call␊
14 | /**/␊
15 | (␊
16 | /**/␊
17 | (␊
18 | /**/␊
19 | foo␊
20 | /**/␊
21 | )␊
22 | /**/␊
> 23 | ,␊
| ^␊
> 24 | /**/␊
| ^^^^^^^␊
> 25 | )/**/␊
| ^^^^ Missing the separator argument.␊
26 | )␊
`
1 | foo?.join()
Output
`␊
1 | foo?.join(',')␊
`
Error 1/1
`␊
> 1 | foo?.join()␊
| ^^ Missing the separator argument.␊
`