diff --git a/.bithoundrc b/.bithoundrc new file mode 100644 index 00000000..9af92b62 --- /dev/null +++ b/.bithoundrc @@ -0,0 +1,32 @@ +{ + "ignore": [ + "**/node_modules/**", + "**/dist/**", + "**/docs/**" + ], + "test": [ + "**/test/**", + "**/tests/**", + "**/spec/**", + "**/specs/**", + "**/*.test.ts", + "**/*.test.js", + "**/*.spec.js", + "**/*.spec.ts" + ], + "critics": { + "lint": {"engine": "tslint"} + }, + "dependencies": { + "mute": [ + "rxjs", + "jsdoc-to-markdown" + ], + "unused-ignores": [ + "zone.js", + "reflect-metadata", + "meteor-typings", + "@types/*" + ] + } +} \ No newline at end of file diff --git a/package.json b/package.json index fb9bd661..81c8c316 100644 --- a/package.json +++ b/package.json @@ -41,19 +41,19 @@ "rxjs": "^5.0.0-beta.12" }, "devDependencies": { - "@types/mocha": "^2.2.32", - "@types/underscore": "^1.7.33", - "conventional-changelog": "^1.1.0", - "conventional-changelog-cli": "^1.2.0", - "es6-shim": "^0.35.0", - "ghooks": "^1.2.1", - "jsdoc-to-markdown": "^2.0.1", - "rollup": "^0.36.1", + "@types/mocha": "2.2.32", + "@types/underscore": "1.7.33", + "conventional-changelog": "1.1.0", + "conventional-changelog-cli": "1.2.0", + "es6-shim": "0.35.1", + "ghooks": "1.3.2", + "jsdoc-to-markdown": "2.0.1", + "rollup": "0.36.3", "rxjs": "^5.0.0-beta.12", - "tslint": "^3.6.0", - "typescript": "^2.0.0", - "typings": "^1.3.0", - "validate-commit-msg": "^2.6.1", + "tslint": "3.15.1", + "typescript": "2.0.6", + "typings": "1.5.0", + "validate-commit-msg": "2.8.2", "zone.js": "^0.6.22" } } diff --git a/tests/client/unit/observable-cursor.spec.ts b/tests/client/unit/observable-cursor.spec.ts index 465e328b..fbd33746 100644 --- a/tests/client/unit/observable-cursor.spec.ts +++ b/tests/client/unit/observable-cursor.spec.ts @@ -96,7 +96,7 @@ describe('ObservableCursor', function () { // 4 because: insert, insert, update, *move* if (count === 4) { let firstItem = docs[0]; - expect(firstItem.name).to.equal("AAAA"); + expect(firstItem.name).to.equal('AAAA'); subHandler.unsubscribe(); done(); } @@ -107,10 +107,10 @@ describe('ObservableCursor', function () { let objectId = collection.insert(newDoc); collection.insert({ - name: "BBBB" + name: 'BBBB' }); - collection.update({_id: objectId}, { $set: {name: "AAAA"} }); + collection.update({_id: objectId}, { $set: {name: 'AAAA'} }); }); it('Should trigger callback twice when inserting a doc and then removing it', () => {