fix unit tests

This commit is contained in:
Fabian Jakobs 2011-08-18 13:03:21 +02:00
commit 6d94ef4ac0

View file

@ -69,7 +69,7 @@ global.define = function (id, injects, factory) {
relativeId = "../" + absolutePath.match(new RegExp(rootPath + "(.*)"))[1];
}
if (prefix == "text") {
if (prefix == "ace/requirejs/text") {
return fs.readFileSync(findModulePath(relativeId))
} else
return require(relativeId);