Skip to content

Commit 302a6fb

Browse files
committed
fix travis node tests
1 parent 5a6423d commit 302a6fb

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ before_script:
120120

121121
script:
122122
- python quicktest.py leaflet --db=$DATABASE
123-
- node node_modules/django-leaflet-tests/node_modules/mocha-phantomjs/bin/mocha-phantomjs leaflet/tests/index.html
123+
- node --version
124+
- node node_modules/mocha-phantomjs/bin/mocha-phantomjs leaflet/tests/index.html
124125

125126
after_success:
126127
- coverage run quicktest.py leaflet --db=$DATABASE

leaflet/tests/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<div id="map" style="display: none; height: 300px"></div>
99
<div id="mocha"></div>
1010

11-
<script src="../../node_modules/django-leaflet-tests/node_modules/happen/happen.js"></script>
12-
<script src="../../node_modules/django-leaflet-tests/node_modules/chai/chai.js"></script>
13-
<script src="../../node_modules/django-leaflet-tests/node_modules/mocha/mocha.js"></script>
14-
<script src="../../node_modules/django-leaflet-tests/node_modules/sinon/lib/sinon.js"></script>
15-
<script src="../../node_modules/django-leaflet-tests/node_modules/sinon/lib/sinon/spy.js"></script>
11+
<script src="../../node_modules/happen/happen.js"></script>
12+
<script src="../../node_modules/chai/chai.js"></script>
13+
<script src="../../node_modules/mocha/mocha.js"></script>
14+
<script src="../../node_modules/sinon/lib/sinon.js"></script>
15+
<script src="../../node_modules/sinon/lib/sinon/spy.js"></script>
1616

1717
<script src="../../leaflet/static/leaflet/leaflet-src.js"></script>
1818

leaflet/tests/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
"version": "0.8.0",
44
"description": "Fake package for tests purposes only",
55
"dependencies": {
6-
"leaflet": "*",
7-
"happen": "*",
8-
"mocha": "1.9.x",
9-
"chai": "1.6.x",
6+
"leaflet": "1.0.3",
7+
"happen": "0.3.x",
8+
"mocha": "4.0.1",
9+
"chai": "4.1.x",
1010
"sinon": "1.7.x",
11-
"mocha-phantomjs": "2.0.x"
11+
"mocha-phantomjs": "4.1.x",
12+
"phantomjs-prebuilt": "2.1.x"
1213
}
1314
}

0 commit comments

Comments
 (0)