bd-load
Version:
A small and fast AMD loader for building modern applications on node.js and the browser.
24 lines (22 loc) • 479 B
JavaScript
define(["smoke", "test/assert"], function(smoke, assert){
smoke.defTest({
id: "toUrl",
before: function(){
let self = this;
return new Promise(function(resolve, reject){
require.signal = function(e){
reject(e);
};
require(["test/toUrl/module"], function(module){
self.user = module;
resolve();
});
})
},
test: function(){
this.user.forEach(pair=>{
assert.equal(pair[0], pair[1]);
});
}
})
});