Browse Source

test for intro/outro

better-aggressive
Rich-Harris 9 years ago
parent
commit
04af65bc79
  1. 8
      test/form/intro-and-outro/_config.js
  2. 7
      test/form/intro-and-outro/_expected/amd.js
  3. 5
      test/form/intro-and-outro/_expected/cjs.js
  4. 3
      test/form/intro-and-outro/_expected/es6.js
  5. 7
      test/form/intro-and-outro/_expected/iife.js
  6. 11
      test/form/intro-and-outro/_expected/umd.js
  7. 1
      test/form/intro-and-outro/main.js

8
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 */'
}
};

7
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 */
});

5
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 */

3
test/form/intro-and-outro/_expected/es6.js

@ -0,0 +1,3 @@
/* this is an intro */
console.log( 'hello world' );
/* this is an outro */

7
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 */
})();

11
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 */
}));

1
test/form/intro-and-outro/main.js

@ -0,0 +1 @@
console.log( 'hello world' );
Loading…
Cancel
Save