The actual snapshot is saved in consistent-function-scoping.js.snap
.
Generated by AVA.
Snapshot 1
`␊
Error 1/1:␊
1 | function foo() {␊
> 2 | function bar() {}␊
| ^^^^^^^^^^^^ Move function 'bar' to the outer scope.␊
3 | }␊
`
Snapshot 1
`␊
Error 1/1:␊
1 | function foo() {␊
> 2 | async function bar() {}␊
| ^^^^^^^^^^^^^^^^^^ Move async function 'bar' to the outer scope.␊
3 | }␊
`
Snapshot 1
`␊
Error 1/1:␊
1 | function foo() {␊
> 2 | function * bar() {}␊
| ^^^^^^^^^^^^^^ Move generator function 'bar' to the outer scope.␊
3 | }␊
`
Snapshot 1
`␊
Error 1/1:␊
1 | function foo() {␊
> 2 | async function * bar() {}␊
| ^^^^^^^^^^^^^^^^^^^^ Move async generator function 'bar' to the outer scope.␊
3 | }␊
`
Snapshot 1
`␊
Error 1/1:␊
1 | function foo() {␊
> 2 | const bar = () => {}␊
| ^^ Move arrow function 'bar' to the outer scope.␊
3 | }␊
`
Snapshot 1
`␊
Error 1/1:␊
> 1 | const doFoo = () => bar => bar;␊
| ^^ Move arrow function to the outer scope.␊
`
Snapshot 1
`␊
Error 1/1:␊
1 | function foo() {␊
> 2 | const bar = async () => {}␊
| ^^ Move async arrow function 'bar' to the outer scope.␊
3 | }␊
`
Snapshot 1
`␊
Error 1/1:␊
1 | function doFoo() {␊
> 2 | const doBar = function(bar) {␊
| ^^^^^^^^ Move function to the outer scope.␊
3 | return bar;␊
4 | };␊
5 | }␊
`