diff --git a/test/form/intro-and-outro/_config.js b/test/form/intro-and-outro/_config.js new file mode 100644 index 0000000..d1166f4 --- /dev/null +++ b/test/form/intro-and-outro/_config.js @@ -0,0 +1,8 @@ +module.exports = { + solo: true, + description: 'adds an intro/outro', + options: { + intro: '/* this is an intro */', + outro: '/* this is an outro */' + } +}; diff --git a/test/form/intro-and-outro/_expected/amd.js b/test/form/intro-and-outro/_expected/amd.js new file mode 100644 index 0000000..a58ac95 --- /dev/null +++ b/test/form/intro-and-outro/_expected/amd.js @@ -0,0 +1,7 @@ +define(function () { 'use strict'; + + /* this is an intro */ + console.log( 'hello world' ); + /* this is an outro */ + +}); diff --git a/test/form/intro-and-outro/_expected/cjs.js b/test/form/intro-and-outro/_expected/cjs.js new file mode 100644 index 0000000..662c938 --- /dev/null +++ b/test/form/intro-and-outro/_expected/cjs.js @@ -0,0 +1,5 @@ +'use strict'; + +/* this is an intro */ +console.log( 'hello world' ); +/* this is an outro */ diff --git a/test/form/intro-and-outro/_expected/es6.js b/test/form/intro-and-outro/_expected/es6.js new file mode 100644 index 0000000..c017a45 --- /dev/null +++ b/test/form/intro-and-outro/_expected/es6.js @@ -0,0 +1,3 @@ +/* this is an intro */ +console.log( 'hello world' ); +/* this is an outro */ diff --git a/test/form/intro-and-outro/_expected/iife.js b/test/form/intro-and-outro/_expected/iife.js new file mode 100644 index 0000000..51f9826 --- /dev/null +++ b/test/form/intro-and-outro/_expected/iife.js @@ -0,0 +1,7 @@ +(function () { 'use strict'; + + /* this is an intro */ + console.log( 'hello world' ); + /* this is an outro */ + +})(); diff --git a/test/form/intro-and-outro/_expected/umd.js b/test/form/intro-and-outro/_expected/umd.js new file mode 100644 index 0000000..c26e76b --- /dev/null +++ b/test/form/intro-and-outro/_expected/umd.js @@ -0,0 +1,11 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory() : + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}(this, function () { 'use strict'; + + /* this is an intro */ + console.log( 'hello world' ); + /* this is an outro */ + +})); diff --git a/test/form/intro-and-outro/main.js b/test/form/intro-and-outro/main.js new file mode 100644 index 0000000..3b5a604 --- /dev/null +++ b/test/form/intro-and-outro/main.js @@ -0,0 +1 @@ +console.log( 'hello world' );