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