Skip to content

Commit

Permalink
chore(package): update standard to version 14.0.2 (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerayaEryn authored and Eomm committed Aug 25, 2019
1 parent b2e360a commit 8f6d6b8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"joi": "^14.3.1",
"joi-to-json-schema": "^4.0.0",
"pre-commit": "^1.2.2",
"standard": "^13.0.1",
"standard": "^14.0.2",
"swagger-parser": "^6.0.3",
"swagger-ui-dist": "3.22.1",
"tap": "^12.7.0",
Expand Down
18 changes: 9 additions & 9 deletions tap-snapshots/test-static.js-TAP.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/static.js TAP specification validation check works > undefined 1`] = `
exports['test/static.js TAP specification validation check works > undefined 1'] = `
Error: specification is missing in the module options
`

exports[`test/static.js TAP specification validation check works > undefined 2`] = `
exports['test/static.js TAP specification validation check works > undefined 2'] = `
Error: specification is not an object
`

exports[`test/static.js TAP specification validation check works > undefined 3`] = `
exports['test/static.js TAP specification validation check works > undefined 3'] = `
Error: both specification.path and specification.document are missing, should be path to the file or swagger document spec
`

exports[`test/static.js TAP specification validation check works > undefined 4`] = `
exports['test/static.js TAP specification validation check works > undefined 4'] = `
Error: specification.path is not a string
`

exports[`test/static.js TAP specification validation check works > undefined 5`] = `
exports['test/static.js TAP specification validation check works > undefined 5'] = `
Error: /hello/lionel.richie does not exist
`

exports[`test/static.js TAP specification validation check works > undefined 6`] = `
exports['test/static.js TAP specification validation check works > undefined 6'] = `
Error: specification.postProcessor should be a function
`

exports[`test/static.js TAP swagger route returns json > undefined 1`] = `
exports['test/static.js TAP swagger route returns json > undefined 1'] = `
{
"openapi": "3.0.0",
"info": {
Expand Down Expand Up @@ -83,7 +83,7 @@ exports[`test/static.js TAP swagger route returns json > undefined 1`] = `
}
`

exports[`test/static.js TAP postProcessor works, swagger route returns updated yaml > undefined 1`] = `
exports['test/static.js TAP postProcessor works, swagger route returns updated yaml > undefined 1'] = `
openapi: 3.0.0
info:
description: Test swagger specification
Expand Down Expand Up @@ -118,7 +118,7 @@ paths:
`

exports[`test/static.js TAP swagger route returns explicitly passed doc > undefined 1`] = `
exports['test/static.js TAP swagger route returns explicitly passed doc > undefined 1'] = `
{
"info": {
"title": "Test swagger",
Expand Down
10 changes: 5 additions & 5 deletions test/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ test('/documentation should redirect to /documentation/static/index.html', t =>
}, (err, res) => {
t.error(err)
t.strictEqual(res.statusCode, 302)
t.strictEqual(res.headers['location'], '/documentation/static/index.html')
t.strictEqual(res.headers.location, '/documentation/static/index.html')
t.is(typeof res.payload, 'string')
})
})
Expand All @@ -208,7 +208,7 @@ test('/v1/documentation should redirect to /v1/documentation/static/index.html',
}, (err, res) => {
t.error(err)
t.strictEqual(res.statusCode, 302)
t.strictEqual(res.headers['location'], '/v1/documentation/static/index.html')
t.strictEqual(res.headers.location, '/v1/documentation/static/index.html')
t.is(typeof res.payload, 'string')
})
})
Expand Down Expand Up @@ -238,7 +238,7 @@ test('/v1/foobar should redirect to /v1/foobar/static/index.html - in plugin', t
}, (err, res) => {
t.error(err)
t.strictEqual(res.statusCode, 302)
t.strictEqual(res.headers['location'], '/v1/foobar/static/index.html')
t.strictEqual(res.headers.location, '/v1/foobar/static/index.html')
t.is(typeof res.payload, 'string')
})
})
Expand All @@ -259,7 +259,7 @@ test('with routePrefix: \'/\' should redirect to /static/index.html', t => {
}, (err, res) => {
t.error(err)
t.strictEqual(res.statusCode, 302)
t.strictEqual(res.headers['location'], '/static/index.html')
t.strictEqual(res.headers.location, '/static/index.html')
t.is(typeof res.payload, 'string')
})
})
Expand All @@ -283,7 +283,7 @@ test('/documentation/static/:file should send back the correct file', t => {
}, (err, res) => {
t.error(err)
t.is(res.statusCode, 302)
t.is(res.headers['location'], '/documentation/static/index.html')
t.is(res.headers.location, '/documentation/static/index.html')
})

fastify.ready(() => {
Expand Down

0 comments on commit 8f6d6b8

Please sign in to comment.