Permalink
Browse files

fix(alameda): Tests could not load files by path

  • Loading branch information...
fragsalat committed Jan 7, 2019
1 parent 2a84c61 commit 68b3ffa3b704d22df4497f37c8a80f9805148b65
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/resources/test/alameda.aurelia-karma.js
@@ -57,6 +57,16 @@
}
return url;
};

const originalDefine = global.define;
global.define = function(name, deps, m) {
if (typeof name === 'string') {
originalDefine('/base/' + root + '/' + name, [name], function (result) { return result; });
}

return originalDefine(name, deps, m);
};
global.define.amd = originalDefine.amd;
}

function requireTests() {

0 comments on commit 68b3ffa

Please sign in to comment.