mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
354 B
16 lines
354 B
12 years ago
|
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();
|
||
|
});
|