From 7f61f5c75402785d956c9de6d838bc7bd580161c Mon Sep 17 00:00:00 2001 From: Permutator Date: Mon, 19 Sep 2016 12:57:20 -0700 Subject: [PATCH] Added failing test for inclusion of internally used default export --- .../includes-internally-used-default-export/_config.js | 3 +++ .../includes-internally-used-default-export/main.js | 3 +++ .../includes-internally-used-default-export/module.js | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100644 test/function/includes-internally-used-default-export/_config.js create mode 100644 test/function/includes-internally-used-default-export/main.js create mode 100644 test/function/includes-internally-used-default-export/module.js diff --git a/test/function/includes-internally-used-default-export/_config.js b/test/function/includes-internally-used-default-export/_config.js new file mode 100644 index 0000000..3eab340 --- /dev/null +++ b/test/function/includes-internally-used-default-export/_config.js @@ -0,0 +1,3 @@ +module.exports = { + description: 'includes default exports that are only used internally' +}; diff --git a/test/function/includes-internally-used-default-export/main.js b/test/function/includes-internally-used-default-export/main.js new file mode 100644 index 0000000..c196b10 --- /dev/null +++ b/test/function/includes-internally-used-default-export/main.js @@ -0,0 +1,3 @@ +import { b } from './module.js'; + +assert.equal(b(), 15); diff --git a/test/function/includes-internally-used-default-export/module.js b/test/function/includes-internally-used-default-export/module.js new file mode 100644 index 0000000..8f3524b --- /dev/null +++ b/test/function/includes-internally-used-default-export/module.js @@ -0,0 +1,7 @@ +export default function a() { + return 5; +} + +export function b() { + return a() + 10; +}