Use Array.isArray instead
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user