Initial commit
This commit is contained in:
9
test/loading/module.js
Normal file
9
test/loading/module.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (modular) {
|
||||
return {
|
||||
run: function () {
|
||||
return modular('module2').run();
|
||||
}
|
||||
};
|
||||
};
|
||||
9
test/loading/module2.js
Normal file
9
test/loading/module2.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function() {
|
||||
return {
|
||||
run : function () {
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
};
|
||||
9
test/loading/module3.js
Normal file
9
test/loading/module3.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (modular) {
|
||||
return {
|
||||
run: function () {
|
||||
return modular('nested.module4').run();
|
||||
}
|
||||
};
|
||||
};
|
||||
11
test/loading/module5.js
Normal file
11
test/loading/module5.js
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
var mod;
|
||||
|
||||
module.exports.onLoad = function (modular) {
|
||||
mod = modular('module6');
|
||||
};
|
||||
|
||||
module.exports.run = function () {
|
||||
return mod.run();
|
||||
};
|
||||
9
test/loading/module6.js
Normal file
9
test/loading/module6.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function() {
|
||||
return {
|
||||
run : function () {
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
};
|
||||
9
test/loading/nested/module4.js
Normal file
9
test/loading/nested/module4.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function() {
|
||||
return {
|
||||
run : function () {
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user