Sha256: 465486b146f970dc428fc13da0103cd09dd899acd0dc493451ee6b1c9b2d49d9
Contents?: true
Size: 645 Bytes
Versions: 37
Compression:
Stored size: 645 Bytes
Contents
var tap = require('tap'); var test = tap.test; test('no module system', function(t) { var fs = require('fs'); var vm = require('vm'); var head = fs.readFileSync(require.resolve('../head.js.txt'), 'utf8'); var src = fs.readFileSync(require.resolve('../'), 'utf8'); var foot = fs.readFileSync(require.resolve('../foot.js.txt'), 'utf8'); vm.runInThisContext(head + src + foot, 'semver.js'); // just some basic poking to see if it did some stuff t.type(global.semver, 'object'); t.type(global.semver.SemVer, 'function'); t.type(global.semver.Range, 'function'); t.ok(global.semver.satisfies('1.2.3', '1.2')); t.end(); });
Version data entries
37 entries across 21 versions & 4 rubygems