Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test to ensure that we don't break "obj.require()" calls
- Loading branch information
1 parent
659852f
commit 0831925
Showing
6 changed files
with
24 additions
and
3 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 |
---|---|---|
|
@@ -2,4 +2,7 @@ module.exports = { | |
a() { | ||
return 'a - original'; | ||
}, | ||
require() { | ||
return 'require method in a.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
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 |
---|---|---|
|
@@ -9,4 +9,8 @@ module.exports = { | |
getB() { | ||
return b(); | ||
}, | ||
|
||
callRequireMethod() { | ||
return a.require(); | ||
}, | ||
}; |
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,10 +1,14 @@ | ||
import { a } from './a.js'; | ||
import a, { a as methodA } from './a.js'; | ||
import b from './b.js'; | ||
|
||
export function getA() { | ||
return a(); | ||
return methodA(); | ||
} | ||
|
||
export function getB() { | ||
return b(); | ||
} | ||
|
||
export function callRequireMethod() { | ||
return a.require(); | ||
} |
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