From 9751849e7fac41ce0cb20ecb16ccb1a755882a98 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sun, 9 Oct 2016 12:23:58 -0400 Subject: [PATCH] beef up test --- test/form/custom-module-context/_config.js | 2 +- test/form/custom-module-context/_expected/amd.js | 2 ++ test/form/custom-module-context/_expected/cjs.js | 2 ++ test/form/custom-module-context/_expected/es.js | 2 ++ test/form/custom-module-context/_expected/iife.js | 2 ++ test/form/custom-module-context/_expected/umd.js | 2 ++ test/form/custom-module-context/foo.js | 1 + test/form/custom-module-context/main.js | 1 + 8 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/form/custom-module-context/foo.js diff --git a/test/form/custom-module-context/_config.js b/test/form/custom-module-context/_config.js index 3aa508d..f5d68d2 100644 --- a/test/form/custom-module-context/_config.js +++ b/test/form/custom-module-context/_config.js @@ -3,6 +3,6 @@ module.exports = { options: { moduleContext: { 'main.js': 'lolwut' - } + } } }; diff --git a/test/form/custom-module-context/_expected/amd.js b/test/form/custom-module-context/_expected/amd.js index a160d17..9274799 100644 --- a/test/form/custom-module-context/_expected/amd.js +++ b/test/form/custom-module-context/_expected/amd.js @@ -1,5 +1,7 @@ define(function () { 'use strict'; + undefined.prop = 'nope'; + lolwut.prop = '???'; }); diff --git a/test/form/custom-module-context/_expected/cjs.js b/test/form/custom-module-context/_expected/cjs.js index f42cf3c..35a5b08 100644 --- a/test/form/custom-module-context/_expected/cjs.js +++ b/test/form/custom-module-context/_expected/cjs.js @@ -1,3 +1,5 @@ 'use strict'; +undefined.prop = 'nope'; + lolwut.prop = '???'; diff --git a/test/form/custom-module-context/_expected/es.js b/test/form/custom-module-context/_expected/es.js index fa83c3d..a6903e0 100644 --- a/test/form/custom-module-context/_expected/es.js +++ b/test/form/custom-module-context/_expected/es.js @@ -1 +1,3 @@ +undefined.prop = 'nope'; + lolwut.prop = '???'; diff --git a/test/form/custom-module-context/_expected/iife.js b/test/form/custom-module-context/_expected/iife.js index a41619e..7926fe6 100644 --- a/test/form/custom-module-context/_expected/iife.js +++ b/test/form/custom-module-context/_expected/iife.js @@ -1,6 +1,8 @@ (function () { 'use strict'; + undefined.prop = 'nope'; + lolwut.prop = '???'; }()); diff --git a/test/form/custom-module-context/_expected/umd.js b/test/form/custom-module-context/_expected/umd.js index a73a22c..22fa605 100644 --- a/test/form/custom-module-context/_expected/umd.js +++ b/test/form/custom-module-context/_expected/umd.js @@ -4,6 +4,8 @@ (factory()); }(this, (function () { 'use strict'; + undefined.prop = 'nope'; + lolwut.prop = '???'; }))); diff --git a/test/form/custom-module-context/foo.js b/test/form/custom-module-context/foo.js new file mode 100644 index 0000000..a5a991d --- /dev/null +++ b/test/form/custom-module-context/foo.js @@ -0,0 +1 @@ +this.prop = 'nope'; diff --git a/test/form/custom-module-context/main.js b/test/form/custom-module-context/main.js index 169f08b..1323b68 100644 --- a/test/form/custom-module-context/main.js +++ b/test/form/custom-module-context/main.js @@ -1 +1,2 @@ +import './foo.js'; this.prop = '???';