Skip to content

Commit

Permalink
test: handles default export of anonymous class with correct name #4324
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 31, 2022
1 parent 50f46bc commit 9be2287
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
@@ -0,0 +1,3 @@
module.exports = {
description: 'handles default export of anonymous class with correct name #4324'
};
@@ -0,0 +1 @@
export default class {}
@@ -0,0 +1,3 @@
import defaultClass from './foo.js';

assert.equal('default', defaultClass.name);

0 comments on commit 9be2287

Please sign in to comment.