From 9ad98ad8d34b283d9a866d30f06bb7199eb6930a Mon Sep 17 00:00:00 2001 From: Andreas Streichardt Date: Thu, 27 Apr 2017 17:16:52 +0200 Subject: [PATCH] ahhh jslint --- .../tests/shell/shell-create-options-cluster-spec.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/js/server/tests/shell/shell-create-options-cluster-spec.js b/js/server/tests/shell/shell-create-options-cluster-spec.js index ea3f91bf33..18b6a12b19 100644 --- a/js/server/tests/shell/shell-create-options-cluster-spec.js +++ b/js/server/tests/shell/shell-create-options-cluster-spec.js @@ -1,5 +1,4 @@ -/*jshint globalstrict:false, strict:false */ -/*global assertTrue, assertEqual */ +/*global describe, it, ArangoAgency, afterEach */ //////////////////////////////////////////////////////////////////////////////// /// @brief cluster collection creation tests @@ -38,7 +37,7 @@ var db = require("org/arangodb").db; describe('Cluster collection creation options', function() { afterEach(function() { db._drop('testi'); - }) + }); it('should wait for all followers to get in sync when waiting for replication', function() { db._create("testi", {replicationFactor: 2, numberOfShards: 16}, {waitForSyncReplication: true}); let current = ArangoAgency.get('Current/Collections/_system'); @@ -48,14 +47,14 @@ describe('Cluster collection creation options', function() { return result; } - if (collectionDef.name == 'testi') { + if (collectionDef.name === 'testi') { return collectionDef.id; } }, undefined); Object.values(current.arango.Current.Collections['_system'][collectionId]).forEach(entry => { expect(entry.servers).to.have.lengthOf(2); - }) + }); }); it('should not wait for all followers to get in sync when waiting for replication', function() { db._create("testi", {replicationFactor: 2, numberOfShards: 16}, {waitForSyncReplication: false}); @@ -66,7 +65,7 @@ describe('Cluster collection creation options', function() { return result; } - if (collectionDef.name == 'testi') { + if (collectionDef.name === 'testi') { return collectionDef.id; } }, undefined);