Skip to content

Commit 3d03749

Browse files
committed
more tests
1 parent 0eb0ba6 commit 3d03749

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

packages/common/test/util.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,5 +1676,19 @@ describe('common/util', function() {
16761676
assert.strictEqual(arg, fakeArg);
16771677
});
16781678
});
1679+
1680+
it('should ignore singular when multiple args are present', function() {
1681+
var fakeArgs = ['a', 'b'];
1682+
1683+
func = util.promisify(function(callback) {
1684+
callback.apply(this, [null].concat(fakeArgs));
1685+
}, {
1686+
singular: true
1687+
});
1688+
1689+
return func().then(function(args) {
1690+
assert.deepEqual(args, fakeArgs);
1691+
});
1692+
});
16791693
});
16801694
});

0 commit comments

Comments
 (0)