The fix is to cutoff the leading slash on a module name.
Test is not working due to issues with the ProjectManager and the missing projectRoot
This commit is contained in:
Ingo Richter committed 2014-02-27 18:21:32 -08:00
1 parent b408b51706
commit b856768671
4 files changed
+62 -4

No files matched your search

@@ -0,0 +1,24 @@
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, $ */
define(function (require, exports, module) {
"use strict";
function Cup() {
this.empty = true;
}
Cup.prototype.fill = function () {
this.empty = false;
};
Cup.prototype.emptyIt = function () {
};
Cup.prototype.full = function () {
};
Cup.prototype.empty = function () {
};
exports.Cup = Cup;
});
@@ -0,0 +1,10 @@
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, $ */
define(function (require, exports, module) {
"use strict";
var Cup = require('china/Cup').Cup;
var coffeeCup = new Cup(false);
coffeeCup.
});