diff --git a/test/function/consistent-renaming-f/_config.js b/test/function/consistent-renaming-f/_config.js new file mode 100644 index 0000000..873e296 --- /dev/null +++ b/test/function/consistent-renaming-f/_config.js @@ -0,0 +1,3 @@ +module.exports = { + description: 'consistent renaming test f' +}; diff --git a/test/function/consistent-renaming-f/bar.js b/test/function/consistent-renaming-f/bar.js new file mode 100644 index 0000000..afe602c --- /dev/null +++ b/test/function/consistent-renaming-f/bar.js @@ -0,0 +1,3 @@ +export default function foo() { + return 'consistent'; +} diff --git a/test/function/consistent-renaming-f/main.js b/test/function/consistent-renaming-f/main.js new file mode 100644 index 0000000..d1e53f9 --- /dev/null +++ b/test/function/consistent-renaming-f/main.js @@ -0,0 +1,9 @@ +import bar from './bar'; + +export default function foo () {} + +foo.prototype.a = function ( foo ) { + return bar(); +}; + +assert.equal( new foo().a(), 'consistent' );