Sha256: 4bcf138051e210f00bb466df87355adb6a20ca465a5765c45d1f4e48fc24f940
Contents?: true
Size: 526 Bytes
Versions: 7
Compression:
Stored size: 526 Bytes
Contents
var test = require('tap').test; 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
7 entries across 7 versions & 2 rubygems