Sha256: 397c753c807511529b92622b8eeb865fe3652e9b59411923ef7813f0ac447a69

Contents?: true

Size: 354 Bytes

Versions: 113

Compression:

Stored size: 354 Bytes

Contents

var tap = require('tap');
var test = tap.test;

test('amd', function(t) {
  global.define = define;
  define.amd = true;
  var defined = null;
  function define(stuff) {
    defined = stuff;
  }
  var fromRequire = require('../');
  t.ok(defined, 'amd function called');
  t.equal(fromRequire, defined, 'amd stuff same as require stuff');
  t.end();
});

Version data entries

113 entries across 90 versions & 8 rubygems

Version Path
trusty-festivity-extension-2.3.2 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.3.1 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.3.0 node_modules/bower/node_modules/semver/test/amd.js
hooch-0.4.2 jasmine/node_modules/karma/node_modules/log4js/node_modules/semver/test/amd.js
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/semver/test/amd.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/log4js/node_modules/semver/test/amd.js
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/semver/test/amd.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/log4js/node_modules/semver/test/amd.js
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/semver/test/amd.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp/node_modules/semver/test/amd.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/semver/test/amd.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/npmconf/node_modules/semver/test/amd.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp/node_modules/semver/test/amd.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/npmconf/node_modules/semver/test/amd.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/semver/test/amd.js
traceur-rb-0.0.4 node_modules/traceur/node_modules/semver/test/amd.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp/node_modules/semver/test/amd.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/npmconf/node_modules/semver/test/amd.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/semver/test/amd.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/log4js/node_modules/semver/test/amd.js