Skip to content

Commit

Permalink
fix(alameda): Tests could not load files by path
Browse files Browse the repository at this point in the history
  • Loading branch information
fragsalat committed Jan 7, 2019
1 parent 2a84c61 commit 68b3ffa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/resources/test/alameda.aurelia-karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 68b3ffa

Please sign in to comment.