Skip to content

Latest commit

 

History

History
101 lines (75 loc) · 2.11 KB

consistent-function-scoping.js.md

File metadata and controls

101 lines (75 loc) · 2.11 KB

Snapshot report for test/consistent-function-scoping.js

The actual snapshot is saved in consistent-function-scoping.js.snap.

Generated by AVA.

consistent-function-scoping - #1

Snapshot 1

`␊
Error 1/1:␊
  1 | function foo() {␊
> 2 | 	function bar() {}␊
    | 	^^^^^^^^^^^^ Move function 'bar' to the outer scope.␊
  3 | }␊
`

consistent-function-scoping - #2

Snapshot 1

`␊
Error 1/1:␊
  1 | function foo() {␊
> 2 | 	async function bar() {}␊
    | 	^^^^^^^^^^^^^^^^^^ Move async function 'bar' to the outer scope.␊
  3 | }␊
`

consistent-function-scoping - #3

Snapshot 1

`␊
Error 1/1:␊
  1 | function foo() {␊
> 2 | 	function * bar() {}␊
    | 	^^^^^^^^^^^^^^ Move generator function 'bar' to the outer scope.␊
  3 | }␊
`

consistent-function-scoping - #4

Snapshot 1

`␊
Error 1/1:␊
  1 | function foo() {␊
> 2 | 	async function * bar() {}␊
    | 	^^^^^^^^^^^^^^^^^^^^ Move async generator function 'bar' to the outer scope.␊
  3 | }␊
`

consistent-function-scoping - #5

Snapshot 1

`␊
Error 1/1:␊
  1 | function foo() {␊
> 2 | 	const bar = () => {}␊
    | 	               ^^ Move arrow function 'bar' to the outer scope.␊
  3 | }␊
`

consistent-function-scoping - #6

Snapshot 1

`␊
Error 1/1:␊
> 1 | const doFoo = () => bar => bar;␊
    |                         ^^ Move arrow function to the outer scope.␊
`

consistent-function-scoping - #7

Snapshot 1

`␊
Error 1/1:␊
  1 | function foo() {␊
> 2 | 	const bar = async () => {}␊
    | 	                     ^^ Move async arrow function 'bar' to the outer scope.␊
  3 | }␊
`

consistent-function-scoping - #8

Snapshot 1

`␊
Error 1/1:␊
  1 | function doFoo() {␊
> 2 | 	const doBar = function(bar) {␊
    | 	              ^^^^^^^^ Move function to the outer scope.␊
  3 | 		return bar;␊
  4 | 	};␊
  5 | }␊
`