From 355f3a489193ce0bab20b7787ea6f92b72212fab Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 30 Sep 2015 15:55:43 -0400 Subject: [PATCH] add @lukeapage #149 test case --- test/function/consistent-renaming-f/_config.js | 3 +++ test/function/consistent-renaming-f/bar.js | 3 +++ test/function/consistent-renaming-f/main.js | 9 +++++++++ 3 files changed, 15 insertions(+) create mode 100644 test/function/consistent-renaming-f/_config.js create mode 100644 test/function/consistent-renaming-f/bar.js create mode 100644 test/function/consistent-renaming-f/main.js 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' );