forked from speedskater/babel-plugin-rewire
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kamil Jopek
committed
Sep 16, 2015
1 parent
23da976
commit 2b3b0fc
Showing
4 changed files
with
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import DefaultExportImport from './src/defaultExportImport.js'; | ||
import ModuleToExport from './src/moduleToExport.js'; | ||
|
||
import expect from 'expect.js'; | ||
|
||
describe('default export of imported default', function() { | ||
it('works with the original module', function() { | ||
const view = new ModuleToExport(); | ||
expect(view.render()).to.be('Hello'); | ||
}); | ||
|
||
it('has the functionality of the original module', function() { | ||
const view = new DefaultExportImport(); | ||
expect(view.render()).to.be('Hello'); | ||
}); | ||
}); |
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 } from './moduleToExport.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,5 @@ | ||
export default class { | ||
render() { | ||
return 'Hello'; | ||
} | ||
} |
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