diff --git a/ava.config.js b/ava.config.js index fa17725..0a5871d 100644 --- a/ava.config.js +++ b/ava.config.js @@ -1,8 +1,8 @@ -module.exports = { - 'files' : [ - 'examples/blog/*test.js' +export default { + "files" : [ + "examples/blog/*test.js" ], - 'require' : [ - '@babel/register' + "require" : [ + "@babel/register" ] -}; +} diff --git a/examples/chat/documentation/api-blueprint.md b/examples/chat/documentation/api-blueprint.md index 3b290ed..4f02a4c 100644 --- a/examples/chat/documentation/api-blueprint.md +++ b/examples/chat/documentation/api-blueprint.md @@ -75,6 +75,11 @@ FORMAT: 1A AUTH: 5NM2p40Z8 Content-Type: application/json + + + Parameters + + sender: 2 + limit: 5 + Body diff --git a/templates/reporters/api-blueprint.md b/templates/reporters/api-blueprint.md index 235d492..d4c6e3a 100644 --- a/templates/reporters/api-blueprint.md +++ b/templates/reporters/api-blueprint.md @@ -20,6 +20,7 @@ FORMAT: 1A {{#if (notEmpty request.query)}} + Parameters + {{#each request.query}} {{@key}}: {{this}} {{/each}} diff --git a/tests/examples/examples-chat.test.js b/tests/examples/examples-chat.test.js index c3c0b60..92928ac 100644 --- a/tests/examples/examples-chat.test.js +++ b/tests/examples/examples-chat.test.js @@ -1,4 +1,3 @@ -/* eslint-disable unicorn/no-await-expression-member */ import path from 'path'; import Mocha from 'mocha'; import { assert } from 'chai'; diff --git a/tests/package/chronicle-split.test.js b/tests/package/chronicle-split.test.js index 13511af..c29bd02 100644 --- a/tests/package/chronicle-split.test.js +++ b/tests/package/chronicle-split.test.js @@ -17,8 +17,8 @@ test('Split actions', function () { return action.group; }); - assert.lengthOf(chronicle._actions, 4); - assert.lengthOf(splitted, 2); + assert.lengthOf(chronicle._actions, 5); + assert.lengthOf(splitted, 3); const userGroup = splitted.find(s => s.id === 'Users'); assert.lengthOf(userGroup._actions, 3);