Skip to content

Commit 7cf2f3f

Browse files
author
DvirDukhan
committed
removed multiple catch
1 parent d2c9195 commit 7cf2f3f

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

test/redisGraphAPITest.js

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ describe('RedisGraphAPI Test', function () {
119119
assert.equal(true, record.containsKey("r.name"));
120120
assert.equal(2, record.size());
121121
done()
122-
}).catch(error => {
123-
console.log(error);
124122
})
125123
}).catch(error => {
126124
console.log(error);
@@ -167,14 +165,8 @@ describe('RedisGraphAPI Test', function () {
167165
assert.equal(false, r.properties["boolValue"]);
168166
assert.equal(undefined, r.properties["nullValue"]);
169167
done();
170-
}).catch(error => {
171-
console.log(error);
172168
})
173-
}).catch(error => {
174-
console.log(error);
175169
})
176-
}).catch(error => {
177-
console.log(error);
178170
})
179171
}).catch(error => {
180172
console.log(error);
@@ -189,8 +181,6 @@ describe('RedisGraphAPI Test', function () {
189181
assert.equal(undefined, record.get(0));
190182
assert.equal(null, record.getString(0))
191183
done();
192-
}).catch(error => {
193-
console.log(error);
194184
})
195185
}).catch(error => {
196186
console.log(error);
@@ -216,14 +206,8 @@ describe('RedisGraphAPI Test', function () {
216206
assert.equal(0, resultSet.getStatistics().relationshipsDeleted());
217207
assert.ok(resultSet.getStatistics().getStringValue(Label.QUERY_INTERNAL_EXECUTION_TIME));
218208
done();
219-
}).catch(error => {
220-
console.log(error);
221209
})
222-
}).catch(error => {
223-
console.log(error);
224210
})
225-
}).catch(error => {
226-
console.log(error);
227211
})
228212
}).catch(error => {
229213
console.log(error);
@@ -250,14 +234,8 @@ describe('RedisGraphAPI Test', function () {
250234
let record = newResultSet.next();
251235
assert.deepStrictEqual([nodeA, nodeB], record.get(0));
252236
done();
253-
}).catch(error => {
254-
console.log(error);
255237
})
256-
}).catch(error => {
257-
console.log(error);
258238
})
259-
}).catch(error => {
260-
console.log(error);
261239
})
262240
}).catch(error => {
263241
console.log(error);
@@ -280,9 +258,7 @@ describe('RedisGraphAPI Test', function () {
280258
assert.equal(0, n.id);
281259
}
282260
done();
283-
}).catch(error => {
284-
console.log(error);
285-
});
261+
})
286262
}).catch(error => {
287263
console.log(error);
288264
})

0 commit comments

Comments
 (0)