Browse Source

add @lukeapage #149 test case

contingency-plan
Rich Harris 9 years ago
parent
commit
355f3a4891
  1. 3
      test/function/consistent-renaming-f/_config.js
  2. 3
      test/function/consistent-renaming-f/bar.js
  3. 9
      test/function/consistent-renaming-f/main.js

3
test/function/consistent-renaming-f/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'consistent renaming test f'
};

3
test/function/consistent-renaming-f/bar.js

@ -0,0 +1,3 @@
export default function foo() {
return 'consistent';
}

9
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' );
Loading…
Cancel
Save