Sha256: adaee6f728a38fda7cb16dfa61c09205046d1acf25c77338505bfbc547d55fbb
Contents?: true
Size: 932 Bytes
Versions: 7
Compression:
Stored size: 932 Bytes
Contents
var browserify = require('../'); var test = require('tap').test; test('bundle in debug mode', function (t) { t.plan(3); var b = browserify({ debug: true }); b.require('seq'); b.bundle(function (err, buf) { var src = buf.toString('utf8'); var secondtolastLine = src.split('\n').slice(-2); t.ok(typeof src === 'string'); t.ok(src.length > 0); t.ok(/^\/\/# sourceMappingURL=/.test(secondtolastLine), 'includes sourcemap'); }); }); test('bundle in non debug mode', function (t) { t.plan(3); var b = browserify(); b.require('seq'); b.bundle(function (err, buf) { var src = buf.toString('utf8'); var secondtolastLine = src.split('\n').slice(-2); t.ok(typeof src === 'string'); t.ok(src.length > 0); t.notOk(/^\/\/# sourceMappingURL=/.test(secondtolastLine), 'includes no sourcemap'); }); });
Version data entries
7 entries across 7 versions & 2 rubygems