fix tests

This commit is contained in:
2018-08-25 13:14:02 +03:00
parent cfe366c469
commit 68d9d979b1
10 changed files with 945 additions and 1343 deletions

View File

@@ -4,7 +4,7 @@ class NotFoundError extends Error {
Error.captureStackTrace(this, NotFoundError);
this.name = 'NotFound';
this.text = text;
this.code = 404;
this.status = 404;
}
}
@@ -14,7 +14,7 @@ class BadRequestError extends Error {
Error.captureStackTrace(this, NotFoundError);
this.name = 'BadRequest';
this.text = text;
this.code = 400;
this.status = 400;
}
}