Skip to content

Commit

Permalink
Fix for jshint, remove link workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyhwang committed Jul 25, 2018
1 parent 28ccdb8 commit bb317e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ node_js:
- "10"
- "8"
- "6"
script: "ln -s .. node_modules/sharedb; npm run jshint && npm run test-cover"
script: "npm run jshint && npm run test-cover"
# Send coverage data to Coveralls
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
5 changes: 3 additions & 2 deletions test/db-memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,14 @@ BasicQueryableMemoryDB.prototype._querySync = function(snapshots, query, options
}
}

return {snapshots: snapshots}
return {snapshots: snapshots};
};

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

Expand Down

0 comments on commit bb317e2

Please sign in to comment.