Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Feb 13, 2020
1 parent 8d2f6e2 commit 2ce4e86
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 29 deletions.
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,46 @@
"url": "http://gajus.com"
},
"ava": {
"babel": {
"compileAsTests": [
"test/helpers/**/*"
]
},
"files": [
"test/**/*"
],
"helpers": [
"test/helpers/**/*"
"test/slonik-interceptor-query-logging/**/*"
],
"require": [
"@babel/register"
],
"sources": [
"src/**/*"
]
},
"dependencies": {
"crack-json": "^1.2.1",
"pretty-ms": "^5.0.0",
"crack-json": "^1.3.0",
"pretty-ms": "^6.0.0",
"serialize-error": "^5.0.0",
"slonik": "^21.4.0"
"slonik": "^22.4.0"
},
"description": "Logs Slonik queries.",
"devDependencies": {
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/plugin-transform-flow-strip-types": "^7.6.3",
"@babel/preset-env": "^7.7.1",
"@babel/register": "^7.7.0",
"ava": "^2.4.0",
"babel-plugin-istanbul": "^5.2.0",
"babel-plugin-macros": "^2.6.1",
"@ava/babel": "^1.0.1",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/plugin-transform-flow-strip-types": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/register": "^7.8.3",
"ava": "^3.3.0",
"babel-plugin-istanbul": "^6.0.0",
"babel-plugin-macros": "^2.8.0",
"babel-plugin-transform-export-default-name": "^2.0.4",
"coveralls": "^3.0.7",
"eslint": "^6.6.0",
"eslint-config-canonical": "^17.8.0",
"flow-bin": "^0.111.3",
"flow-copy-source": "^2.0.8",
"husky": "^3.0.9",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"eslint-config-canonical": "^18.1.1",
"flow-bin": "^0.118.0",
"flow-copy-source": "^2.0.9",
"husky": "^4.2.3",
"inline-loops.macro": "^1.2.2",
"nyc": "^14.1.1",
"semantic-release": "^15.13.30",
"sinon": "^7.5.0"
"nyc": "^15.0.0",
"semantic-release": "^17.0.3",
"sinon": "^8.1.1"
},
"engines": {
"node": ">=8.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ test('extracts JSON from the message', (t) => {
test('throws an error if payload is not found', (t) => {
t.throws(() => {
getAutoExplainPayload('duration:');
}, 'Notice message does not contain a recognizable JSON payload.');
}, {
message: 'Notice message does not contain a recognizable JSON payload.',
});
});

test('throws an error if multiple payloads are found', (t) => {
t.throws(() => {
getAutoExplainPayload('duration: {"foo":"bar"} {"foo":"bar"}');
}, 'Notice message contains multiple JSON payloads.');
}, {
message: 'Notice message contains multiple JSON payloads.',
});
});

0 comments on commit 2ce4e86

Please sign in to comment.