Skip to content

Commit

Permalink
Merge pull request #57 from opentable/AC/version-bumps
Browse files Browse the repository at this point in the history
Updates devDeps and patch version bump to 1.0.7
  • Loading branch information
acolchado authored Mar 22, 2024
2 parents 5efa1a9 + 32f0dc8 commit 057d980
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "spur-errors",
"description": "Common error builder utility for Node.js. Contains common error types, and stack trace tracking to support more detailed error messages.",
"version": "1.0.6",
"version": "1.0.7",
"main": "./src/SpurErrors",
"author": {
"name": "Agustin Colchado",
Expand Down Expand Up @@ -33,8 +33,8 @@
},
"dependencies": {},
"devDependencies": {
"eslint": "^8.55.0",
"eslint-plugin-node": "^11.1.0",
"eslint": "8.57.0",
"eslint-plugin-node": "11.1.0",
"jest": "29.7.0"
}
}
7 changes: 5 additions & 2 deletions test/unit/SpurErrors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ describe('SpurErrors;', function () {
.setErrorCode('leaf_error')
.stack;

console.log(e);
expect(e).toBeDefined();
});

it('test callee', () => {
const callee = Callee;
console.error(callee.run().stack);
const result = callee.run();

expect(result.message).toBe('Not Found Error');
expect(result.statusCode).toBe(404);
});

it('errorByStatusCode()', () => {
Expand Down

0 comments on commit 057d980

Please sign in to comment.