Skip to content

Commit a690dd7

Browse files
committed
fixed jquery lib path
1 parent eb50da9 commit a690dd7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/buster.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
var config = module.exports,
22
fs = require('fs'),
33
bower = {
4-
jquery: JSON.parse(fs.readFileSync('bower_components/jquery/bower.json', 'utf8'))
4+
jquery: {
5+
main: 'jquery.js'
6+
}
57
};
68

9+
if (fs.existsSync('bower_components/jquery/bower.json')) {
10+
bower.jquery = JSON.parse(fs.readFileSync('bower_components/jquery/bower.json', 'utf8'))
11+
}
12+
713
config["My tests"] = {
814
rootPath: "../",
915
environment: "browser", // or "node"
1016
libs: [
11-
"bower_components/jquery/" + bower.jquery.main,
17+
"bower_components/jquery/" + bower.jquery.main.replace(/^\.\//, ''),
1218
],
1319
sources: [
1420
"src/callbacks.js",

0 commit comments

Comments
 (0)