Skip to content

Commit bb317e2

Browse files
committed
Fix for jshint, remove link workaround
1 parent 28ccdb8 commit bb317e2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ node_js:
33
- "10"
44
- "8"
55
- "6"
6-
script: "ln -s .. node_modules/sharedb; npm run jshint && npm run test-cover"
6+
script: "npm run jshint && npm run test-cover"
77
# Send coverage data to Coveralls
88
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"

test/db-memory.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,14 @@ BasicQueryableMemoryDB.prototype._querySync = function(snapshots, query, options
9191
}
9292
}
9393

94-
return {snapshots: snapshots}
94+
return {snapshots: snapshots};
9595
};
9696

9797
// sortProperties is an array whose items are each [propertyName, direction].
9898
function snapshotComparator(sortProperties) {
9999
return function(snapshotA, snapshotB) {
100-
for (var sortProperty of sortProperties) {
100+
for (var i = 0; i < sortProperties.length; i++) {
101+
var sortProperty = sortProperties[i];
101102
var sortKey = sortProperty[0];
102103
var sortDirection = sortProperty[1];
103104

0 commit comments

Comments
 (0)