diff --git a/package-lock.json b/package-lock.json index 140e590..fe3dc81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "spur-errors", - "version": "1.0.6", + "version": "1.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "spur-errors", - "version": "1.0.6", + "version": "1.0.7", "license": "MIT", "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" } }, diff --git a/package.json b/package.json index c641095..d91852b 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } diff --git a/test/unit/SpurErrors.spec.js b/test/unit/SpurErrors.spec.js index 48fbb72..756c31b 100644 --- a/test/unit/SpurErrors.spec.js +++ b/test/unit/SpurErrors.spec.js @@ -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()', () => {