Skip to content

Commit e210f41

Browse files
committed
Merge pull request #46 from Hypercubed/fix-windows
Fix test-jasmine on windows
2 parents 7a18ec7 + dafe268 commit e210f41

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"jasmine-core": "^2.3.4",
8686
"jshint": "^2.8.0",
8787
"karma": "^0.13.15",
88-
"karma-browserify": "^4.4.0",
88+
"karma-browserify": "^4.4.1",
8989
"karma-chrome-launcher": "^0.2.1",
9090
"karma-coverage": "^0.5.3",
9191
"karma-firefox-launcher": "^0.1.6",

tasks/util/shortcut_paths.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module.exports = transformTools.makeRequireTransform('requireTransform',
2222
Object.keys(shortcutsConfig).forEach(function(k) {
2323
if(pathIn.indexOf(k) !== -1) {
2424
var tail = pathIn.split(k)[1];
25-
pathOut = 'require(\''+ shortcutsConfig[k] + tail + '\')';
25+
var newPath = path.join(shortcutsConfig[k], tail).replace(/\\/g, '/');
26+
pathOut = 'require(\''+ newPath + '\')';
2627
}
2728
});
2829

0 commit comments

Comments
 (0)