Skip to content

Commit

Permalink
ci: fix repo url
Browse files Browse the repository at this point in the history
  • Loading branch information
herrmannplatz committed Dec 9, 2018
1 parent 023607b commit a0182d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fp = require('fastify-plugin')
const startTimeSymbol = new Symbol('startTime')
const startTimeSymbol = Symbol('startTime')

const fastifyDatadog = (fastify, {
dogstatsd,
Expand Down Expand Up @@ -45,7 +45,7 @@ const fastifyDatadog = (fastify, {

const now = () => {
const [seconds, nanoseconds] = process.hrtime()
return Math.round(seconds * 1e3 + nanoseconds / 1e6)
return seconds * 1e3 + nanoseconds / 1e6
}

next()
Expand Down
2 changes: 1 addition & 1 deletion index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('fastify-datadog', () => {

await fastify.inject('/users/123456')

expect(dogstatsdMock.histogram.mock.calls).toEqual(1)
expect(dogstatsdMock.histogram.mock.calls.length).toEqual(1)
expect(dogstatsdMock.histogram.mock.calls[0][0]).toEqual('node.fastify.router.response_time')
expect(dogstatsdMock.histogram.mock.calls[0][1]).toBeGreaterThan(0)
expect(dogstatsdMock.histogram.mock.calls[0][3][0]).toEqual('route:/users/:id')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"repository": {
"type": "git",
"url": "git@github.com/herrmannplatz/fastify-datadog.git"
"url": "git+https://github.com/herrmannplatz/fastify-datadog.git"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit a0182d6

Please sign in to comment.