replace jest with ava

This commit is contained in:
Robert Brignull 2020-05-04 18:50:13 +01:00
parent 27cc8b23fe
commit 0347b72305
11775 changed files with 84546 additions and 1440575 deletions

23
node_modules/is-error/index.js generated vendored Normal file
View file

@ -0,0 +1,23 @@
'use strict';
var objectToString = Object.prototype.toString;
var getPrototypeOf = Object.getPrototypeOf;
var ERROR_TYPE = '[object Error]';
module.exports = function isError(err) {
if (typeof err !== 'object') {
return false;
}
if (err instanceof Error) {
// Accept `AssertionError`s from the `assert` module that ships
// with Node.js v6.1.0, compare issue #4.
return true;
}
while (err) {
if (objectToString.call(err) === ERROR_TYPE) {
return true;
}
err = getPrototypeOf(err);
}
return false;
};