Skip to content

Commit

Permalink
Fixed failing tests to use the new expected include paths
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Jan 4, 2013
1 parent 5c2cbfa commit 849e936
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/yui/tests/unit/assets/core-tests.js
Expand Up @@ -38,9 +38,11 @@ YUI.add('core-tests', function(Y) {
YUI.GlobalConfig.useSync = true;

var resolvePath = function(p) {
if (Y.UA.nodejs) {
if (Y.UA.nodejs || typeof __dirname !== 'undefined') {
var path = require('path');
p = path.join(__dirname, p);
//Shifting up a dir, then back down since we live in assets and so does the include
p = path.join(__dirname, '../', p);
console.log(p);
}
return p;
};
Expand Down

0 comments on commit 849e936

Please sign in to comment.