Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: handles default export of anonymous class with correct name #4324
- Loading branch information
1 parent
50f46bc
commit 9be2287
Showing
3 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
test/function/samples/default-exports-of-anonymous-class/_config.js
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
description: 'handles default export of anonymous class with correct name #4324' | ||
}; |
1 change: 1 addition & 0 deletions
1
test/function/samples/default-exports-of-anonymous-class/foo.js
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export default class {} |
3 changes: 3 additions & 0 deletions
3
test/function/samples/default-exports-of-anonymous-class/main.js
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import defaultClass from './foo.js'; | ||
|
||
assert.equal('default', defaultClass.name); |