Skip to content

Commit

Permalink
Updates devDeps and patch version bump to 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
acolchado committed Mar 22, 2024
1 parent 2ffc268 commit 32f0dc8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 25 deletions.
40 changes: 20 additions & 20 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 32f0dc8

Please sign in to comment.