Skip to content

Commit

Permalink
#147: updates test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Kael committed Sep 25, 2015
1 parent 6da1ff2 commit a0e4f3b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion test/mod/async-not-index/0.1.0/async-not-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ define('async-not-index@0.1.0/lib/index', [], function(require, exports, module)
});
};
}, {
main: true
main: true,
map: {
'./relative': 'async-not-index@0.1.0/lib/relative.js'
}
});
2 changes: 1 addition & 1 deletion test/mod/async-not-index/0.1.0/lib/relative.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define('async-not-index@0.1.0/lib/relative', [], function(require, exports, module){
define('async-not-index@0.1.0/lib/relative.js', [], function(require, exports, module){
module.exports = function(n){
return n + 1;
};
Expand Down
8 changes: 7 additions & 1 deletion test/mod/async/0.0.0/async.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
define('async@0.0.0', [], function(require, exports, module){
define('async@0.0.0/async.js', [], function(require, exports, module){
exports.load = function (callback) {
require.async('./relative', function (relative) {
callback(relative);
});
};
}, {
map: {
'./relative': 'async@0.0.0/relative.js'
},
main: true,
entries: ['async@0.0.0/relative.js']
});
2 changes: 1 addition & 1 deletion test/mod/async/0.0.0/relative.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define('async@0.0.0/relative', [], function(require, exports, module){
define('async@0.0.0/relative.js', [], function(require, exports, module){
module.exports = function(n){
return n + 1;
};
Expand Down

0 comments on commit a0e4f3b

Please sign in to comment.