Sha256: 047e50851c6482a4efc5fb516f82a7d9a141e82a6fa96ad0492be5b1bad03f79
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
var test = require('tape'); var pack = require('../'); test('raw', function (t) { t.plan(1); var p = pack({ raw: true }); var src = ''; p.on('data', function (buf) { src += buf }); p.on('end', function () { var r = Function(['T'], 'return ' + src)(t); }); p.write({ id: 'abc', source: 'T.ok(true)', entry: true, }); p.write({ id: 'xyz', source: 'T.fail("non-entry files should not execute")' }); p.end(); });
Version data entries
4 entries across 4 versions & 2 rubygems