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.6.3 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/semver/test/amd.js
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/semver/test/amd.js
blackboard-3.1.9 lib/site_template/node_modules/semver/test/amd.js