Skip to content

Commit

Permalink
include second test for #154
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Oct 5, 2015
1 parent 2202830 commit 65e7cb9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/function/shadowed-namespace-b/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
description: 'namespaces are not shadowed (b)'
};
3 changes: 3 additions & 0 deletions test/function/shadowed-namespace-b/bar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function foo () {
return 42;
}
10 changes: 10 additions & 0 deletions test/function/shadowed-namespace-b/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as bar from './bar';

function car () {
var foo = function () {
return 'nope';
};
return bar.foo();
}

assert.equal( car(), 42 );

0 comments on commit 65e7cb9

Please sign in to comment.