Skip to content

Latest commit

 

History

History
210 lines (168 loc) · 3.42 KB

require-array-join-separator.mjs.md

File metadata and controls

210 lines (168 loc) · 3.42 KB

Snapshot report for test/require-array-join-separator.mjs

The actual snapshot is saved in require-array-join-separator.mjs.snap.

Generated by AVA.

Invalid #1

  1 | foo.join()

Output

`␊
  1 | foo.join(',')␊
`

Error 1/1

`␊
> 1 | foo.join()␊
    |         ^^ Missing the separator argument.␊
`

Invalid #2

  1 | [].join.call(foo)

Output

`␊
  1 | [].join.call(foo, ',')␊
`

Error 1/1

`␊
> 1 | [].join.call(foo)␊
    |                 ^ Missing the separator argument.␊
`

Invalid #3

  1 | [].join.call(foo,)

Output

`␊
  1 | [].join.call(foo, ',',)␊
`

Error 1/1

`␊
> 1 | [].join.call(foo,)␊
    |                  ^ Missing the separator argument.␊
`

Invalid #4

  1 | [].join.call(foo , );

Output

`␊
  1 | [].join.call(foo ,  ',',);␊
`

Error 1/1

`␊
> 1 | [].join.call(foo , );␊
    |                   ^^ Missing the separator argument.␊
`

Invalid #5

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

Invalid #6

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

Invalid #7

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

Invalid #8

  1 | foo?.join()

Output

`␊
  1 | foo?.join(',')␊
`

Error 1/1

`␊
> 1 | foo?.join()␊
    |          ^^ Missing the separator argument.␊
`