Use Array.isArray instead

This commit is contained in:
Girish Ramakrishnan
2021-05-02 11:26:08 -07:00
parent 442110a437
commit 199eda82d1
25 changed files with 47 additions and 47 deletions

View File

@@ -1025,7 +1025,7 @@ describe('dns provider', function () {
expect(options).to.be.an(Object);
var elem = queue.shift();
if (!util.isArray(elem)) throw (new Error('Mock answer required'));
if (!Array.isArray(elem)) throw (new Error('Mock answer required'));
// if no callback passed, return a req object with send();
if (typeof callback !== 'function') {
@@ -1184,7 +1184,7 @@ describe('dns provider', function () {
var callback = arguments[--arguments.length];
var elem = queue.shift();
if (!util.isArray(elem)) throw (new Error('Mock answer required'));
if (!Array.isArray(elem)) throw (new Error('Mock answer required'));
// if no callback passed, return a req object with send();
if (typeof callback !== 'function') {