Browse Source

add test for namespace issue in #149

contingency-plan
Rich Harris 9 years ago
parent
commit
5e09e6b72c
  1. 3
      test/function/pass-namespace-to-function/_config.js
  2. 1
      test/function/pass-namespace-to-function/bar.js
  3. 7
      test/function/pass-namespace-to-function/foo.js
  4. 5
      test/function/pass-namespace-to-function/main.js

3
test/function/pass-namespace-to-function/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'allows a namespace to be passed to a function'
};

1
test/function/pass-namespace-to-function/bar.js

@ -0,0 +1 @@
// this space left intentionally blank

7
test/function/pass-namespace-to-function/foo.js

@ -0,0 +1,7 @@
import * as bar from './bar';
export default function foo () {}
foo.x = function () {
doSomethingWith( bar );
};

5
test/function/pass-namespace-to-function/main.js

@ -0,0 +1,5 @@
import foo from './foo';
export default function () {
foo();
}
Loading…
Cancel
Save