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

Version Path
blackboard-3.1.9 lib/site_template/node_modules/semver/test/no-module.js
hooch-0.4.2 jasmine/node_modules/karma/node_modules/log4js/node_modules/semver/test/no-module.js
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/semver/test/no-module.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/log4js/node_modules/semver/test/no-module.js
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/semver/test/no-module.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/log4js/node_modules/semver/test/no-module.js
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/semver/test/no-module.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/npmconf/node_modules/semver/test/no-module.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp/node_modules/semver/test/no-module.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/semver/test/no-module.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/npmconf/node_modules/semver/test/no-module.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp/node_modules/semver/test/no-module.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/semver/test/no-module.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/semver/test/no-module.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp/node_modules/semver/test/no-module.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/npmconf/node_modules/semver/test/no-module.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/log4js/node_modules/semver/test/no-module.js
hooch-0.3.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/semver/test/no-module.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/log4js/node_modules/semver/test/no-module.js
hooch-0.2.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/semver/test/no-module.js