Skip to content

Commit

Permalink
Add more browserify tests
Browse files Browse the repository at this point in the history
Follow-up to #36.
  • Loading branch information
nolanlawson committed Nov 2, 2016
1 parent 885d512 commit f3fbd1d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/cases/browserify-basic-with-bundle-collapser/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var mod = require(2)
console.log('hello browserify')

},{"2":2}],2:[function(require,module,exports){
console.log('hello browserify module')

},{}]},{},[1]);
8 changes: 8 additions & 0 deletions test/cases/browserify-basic-with-bundle-collapser/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,(function(e){var n=t[o][1][e];return s(n?n:e)}),l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[(function(require,module,exports){
var mod = require(2)
console.log('hello browserify')

}),{"2":2}],2:[(function(require,module,exports){
console.log('hello browserify module')

}),{}]},{},[1]);
8 changes: 8 additions & 0 deletions test/cases/browserify-basic/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var mod = require('./module')
console.log('hello browserify')

},{"./module":2}],2:[function(require,module,exports){
console.log('hello browserify module')

},{}]},{},[1]);
8 changes: 8 additions & 0 deletions test/cases/browserify-basic/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,(function(e){var n=t[o][1][e];return s(n?n:e)}),l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[(function(require,module,exports){
var mod = require('./module')
console.log('hello browserify')

}),{"./module":2}],2:[(function(require,module,exports){
console.log('hello browserify module')

}),{}]},{},[1]);

0 comments on commit f3fbd1d

Please sign in to comment.