| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,7 @@ | |||
| 43 | 43 | "inherits": "~2.0.1", | |
| 44 | 44 | "insert-module-globals": "^7.0.0", | |
| 45 | 45 | "labeled-stream-splicer": "^2.0.0", | |
| 46 | - "module-deps": "^4.0.8", | ||
| 46 | + "module-deps": "^5.0.0", | ||
| 47 | 47 | "os-browserify": "~0.3.0", | |
| 48 | 48 | "parents": "^1.0.1", | |
| 49 | 49 | "path-browserify": "~0.0.0", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,20 @@ | |||
| 1 | + var browserify = require('../'); | ||
| 2 | + var vm = require('vm'); | ||
| 3 | + var test = require('tap').test; | ||
| 4 | + | ||
| 5 | + test('quotes', function (t) { | ||
| 6 | + t.plan(3); | ||
| 7 | + | ||
| 8 | + var b = browserify(__dirname + '/quotes/main.js'); | ||
| 9 | + b.bundle(function (err, src) { | ||
| 10 | + var c = { | ||
| 11 | + done : function (single, double, backtick) { | ||
| 12 | + t.equal(single, 'success', 'single quotes'); | ||
| 13 | + t.equal(double, 'success', 'double quotes'); | ||
| 14 | + t.equal(backtick, 'success', 'backtick quotes'); | ||
| 15 | + t.end(); | ||
| 16 | + } | ||
| 17 | + }; | ||
| 18 | + vm.runInNewContext(src, c); | ||
| 19 | + }); | ||
| 20 | + }); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + done(require('./one.js'), require("./two.js"), require(`./three.js`)); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + module.exports = 'success'; | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + module.exports = 'success'; | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + module.exports = 'success'; | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments