Skip to content

Commit

Permalink
Update standard to the latest version 🚀 (#796)
Browse files Browse the repository at this point in the history
* chore(package): update standard to version 11.0.0

* Fixed standard
  • Loading branch information
greenkeeper[bot] authored and delvedor committed Feb 27, 2018
1 parent dab20bd commit dd585ba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -90,7 +90,7 @@
"simple-get": "^2.7.0",
"snazzy": "^7.0.0",
"split2": "^2.2.0",
"standard": "^10.0.3",
"standard": "^11.0.0",
"tap": "^11.1.0",
"then-sleep": "^1.0.1",
"typescript": "^2.7.1",
Expand Down
22 changes: 11 additions & 11 deletions test/hooks.test.js
Expand Up @@ -319,10 +319,10 @@ test('onRoute hook should be called / 2', t => {
})
next()
})
.after(() => {
t.strictEqual(firstHandler, 1)
t.strictEqual(secondHandler, 1)
})
.after(() => {
t.strictEqual(firstHandler, 1)
t.strictEqual(secondHandler, 1)
})

fastify.ready(err => {
t.error(err)
Expand All @@ -348,13 +348,13 @@ test('onRoute hook should be called / 3', t => {
instance.get('/a', handler)
next()
})
.after((err, done) => {
t.error(err)
setTimeout(() => {
fastify.get('/b', handler)
done()
}, 10)
})
.after((err, done) => {
t.error(err)
setTimeout(() => {
fastify.get('/b', handler)
done()
}, 10)
})

fastify.ready(err => {
t.error(err)
Expand Down
6 changes: 3 additions & 3 deletions test/reply-error.test.js
Expand Up @@ -377,9 +377,9 @@ test('should throw an error if the custom serializer does not serialize the payl
fastify.get('/', (req, reply) => {
try {
reply
.type('text/html')
.serializer(payload => payload)
.send({})
.type('text/html')
.serializer(payload => payload)
.send({})
} catch (err) {
t.type(err, TypeError)
t.strictEqual(err.message, "Attempted to send payload of invalid type 'object'. Expected a string or Buffer.")
Expand Down

0 comments on commit dd585ba

Please sign in to comment.