-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(assert-function-name/auto-import): gracefully handle conflicts b…
…y renaming existing bindings
- Loading branch information
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`does not rename non-conflicting bindings of the same name 1`] = ` | ||
"import check from \\"power-assert\\"; | ||
{ | ||
let check; | ||
} | ||
expect: check(1 === 1);" | ||
`; | ||
|
||
exports[`generates import with specified name when autoImport is set 1`] = ` | ||
"import check from \\"power-assert\\"; | ||
expect: check(1 === 1);" | ||
`; | ||
|
||
exports[`generates specified assert function 1`] = `"expect: check(1 === 1);"`; | ||
|
||
exports[`renames conflicting bindings when autoImporting 1`] = ` | ||
"import check from \\"power-assert\\"; | ||
let _check; | ||
expect: check(1 === 1);" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters