We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb0ba6 commit 3d03749Copy full SHA for 3d03749
1 file changed
packages/common/test/util.js
@@ -1676,5 +1676,19 @@ describe('common/util', function() {
1676
assert.strictEqual(arg, fakeArg);
1677
});
1678
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
1693
1694
0 commit comments