Skip to content

Commit

Permalink
Update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 authored and lukastaegert committed Oct 15, 2022
1 parent aac5424 commit c32a7e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/inject/test/snapshots/test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ Generated by [AVA](https://avajs.dev).
});␊
`

## escapes backslashes in module name

> Snapshot 1
`import { default as $ } from 'slash\\\\back';␊
␊
$(() => {␊
console.log('ready');␊
});␊
`

## inserts a named import statement

> Snapshot 1
Expand Down Expand Up @@ -97,6 +108,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
`const { Promise = "fallback" } = foo;␊
console.log(Promise);␊
␊
`

Expand All @@ -107,6 +119,7 @@ Generated by [AVA](https://avajs.dev).
`function foo({Promise}) {␊
console.log(Promise);␊
}␊
foo();␊
␊
`

Expand All @@ -119,6 +132,7 @@ Generated by [AVA](https://avajs.dev).
function foo({bar = Promise}) {␊
console.log(bar);␊
}␊
foo();␊
␊
`

Expand Down
Binary file modified packages/inject/test/snapshots/test.js.snap
Binary file not shown.

0 comments on commit c32a7e4

Please sign in to comment.