Browse Source

include second test for #154

better-aggressive
Rich Harris 9 years ago
parent
commit
65e7cb9eed
  1. 3
      test/function/shadowed-namespace-b/_config.js
  2. 3
      test/function/shadowed-namespace-b/bar.js
  3. 10
      test/function/shadowed-namespace-b/main.js

3
test/function/shadowed-namespace-b/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'namespaces are not shadowed (b)'
};

3
test/function/shadowed-namespace-b/bar.js

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

10
test/function/shadowed-namespace-b/main.js

@ -0,0 +1,10 @@
import * as bar from './bar';
function car () {
var foo = function () {
return 'nope';
};
return bar.foo();
}
assert.equal( car(), 42 );
Loading…
Cancel
Save