Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 5433de5

Browse files
committed
Unit test no longer fails
1 parent cfb4bf4 commit 5433de5

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/utils/ExtensionUtils.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,18 @@ define(function (require, exports, module) {
8888
options = {
8989
filename: file,
9090
paths: [dir],
91-
rootpath: dir,
92-
currentFileInfo: {
91+
rootpath: dir
92+
};
93+
94+
if (url.indexOf("file://") === 0) {
95+
options.currentFileInfo = {
9396
currentDirectory: dir,
9497
entryPath: dir,
9598
filename: url,
9699
rootFilename: url,
97100
rootpath: dir
98-
}
99-
};
101+
};
102+
}
100103
}
101104

102105
var parser = new less.Parser(options);

0 commit comments

Comments
 (0)