Skip to content

Commit

Permalink
Chore: fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Aug 27, 2022
1 parent 6483141 commit 2629f26
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
12 changes: 6 additions & 6 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
'files' : [
'examples/blog/*test.js'
export default {
"files" : [
"examples/blog/*test.js"
],
'require' : [
'@babel/register'
"require" : [
"@babel/register"
]
};
}
5 changes: 5 additions & 0 deletions examples/chat/documentation/api-blueprint.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ FORMAT: 1A

AUTH: 5NM2p40Z8
Content-Type: application/json

+ Parameters

sender: 2
limit: 5

+ Body

Expand Down
1 change: 1 addition & 0 deletions templates/reporters/api-blueprint.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ FORMAT: 1A
{{#if (notEmpty request.query)}}

+ Parameters

{{#each request.query}}
{{@key}}: {{this}}
{{/each}}
Expand Down
1 change: 0 additions & 1 deletion tests/examples/examples-chat.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-await-expression-member */
import path from 'path';
import Mocha from 'mocha';
import { assert } from 'chai';
Expand Down
4 changes: 2 additions & 2 deletions tests/package/chronicle-split.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2629f26

Please sign in to comment.