Skip to content

Commit e4009ae

Browse files
committed
don't use destructuring assignment, node 4.8 can't handle it
1 parent 24c7724 commit e4009ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/promise-wrappers/test-promise-wrappers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function testChangeUser() {
278278
return connResolved.query('select current_user()');
279279
})
280280
.then(function(result) {
281-
const [rows, fields] = result;
281+
const rows = result[0];
282282
assert.deepEqual(onlyUsername(rows[0]['current_user()']), 'changeuser1');
283283
return connResolved.changeUser({
284284
user: 'changeuser2',
@@ -289,7 +289,7 @@ function testChangeUser() {
289289
return connResolved.query('select current_user()');
290290
})
291291
.then(function(result) {
292-
const [rows, fields] = result;
292+
const rows = result[0];
293293
assert.deepEqual(onlyUsername(rows[0]['current_user()']), 'changeuser2');
294294
return connResolved.changeUser({
295295
user: 'changeuser1',
@@ -303,7 +303,7 @@ function testChangeUser() {
303303
return connResolved.query('select current_user()');
304304
})
305305
.then(function(result) {
306-
const [rows, fields] = result;
306+
const rows = result[0];
307307
assert.deepEqual(onlyUsername(rows[0]['current_user()']), 'changeuser1');
308308
doneChangeUser = true;
309309
return connResolved.end();

0 commit comments

Comments
 (0)