Skip to content

Commit

Permalink
Upgrade: update dependencies [uuid supertest diff]
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed May 17, 2021
1 parent bc3530b commit 79ca509
Show file tree
Hide file tree
Showing 10 changed files with 311 additions and 21,515 deletions.
3 changes: 2 additions & 1 deletion bin/pack-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const COPY = [
const TEST_MODULES = [
'mocha',
'json-server',
'ava'
'ava',
'uuid'
];

const resolveIgnoreRegexp = `^(?!${TEST_MODULES.join('|')}).*$`;
Expand Down
179 changes: 88 additions & 91 deletions examples/chat/documentation/api-blueprint.md
Original file line number Diff line number Diff line change
@@ -1,108 +1,105 @@
FORMAT: 1A

# Users

## Positive: show user profile [GET /users/:id]

+ Request

+ Headers

User-Agent: node-superagent/3.8.3

+ Response 200 (application/json)

+ Headers

x-powered-by: Express
x-content-type-options: nosniff
content-type: application/json; charset=utf-8
content-length: 68
etag: W/"44-cKRyc1Kt3y5I1UnZTvL/GAhmNZA"
date: Sun, 09 May 2021 21:58:28 GMT
connection: close
+ Body

FORMAT: 1A

# Users

## Positive: show user profile [GET /users/:id]

+ Request

+ Headers


+ Response 200 (application/json)

+ Headers

x-powered-by: Express
x-content-type-options: nosniff
content-type: application/json; charset=utf-8
content-length: 68
etag: W/"44-cKRyc1Kt3y5I1UnZTvL/GAhmNZA"
date: Sun, 09 May 2021 21:58:28 GMT
connection: close
+ Body

{
"id": 1,
"name": "Leigh",
"email": "helvy0@feedburner.com"
}


## Positive: change user name [PATCH /users/:id]

+ Request

+ Headers

User-Agent: node-superagent/3.8.3
AUTH: 5NM2p40Z8
Content-Type: application/json

+ Body

}


## Positive: change user name [PATCH /users/:id]

+ Request

+ Headers

AUTH: 5NM2p40Z8
Content-Type: application/json

+ Body

{
"name": "McCoy"
}

+ Response 200 (application/json)

+ Headers

x-powered-by: Express
x-content-type-options: nosniff
content-type: application/json; charset=utf-8
content-length: 68
etag: W/"44-PoB9zlwxM1VephLL9jqUofeAwes"
date: Sun, 09 May 2021 21:58:28 GMT
connection: close
+ Body

}

+ Response 200 (application/json)

+ Headers

x-powered-by: Express
x-content-type-options: nosniff
content-type: application/json; charset=utf-8
content-length: 68
etag: W/"44-PoB9zlwxM1VephLL9jqUofeAwes"
date: Sun, 09 May 2021 21:58:28 GMT
connection: close
+ Body

{
"id": 2,
"name": "McCoy",
"email": "pancell1@gravatar.com"
}

# Messages

## Positive: get list of messages [GET /messages]

+ Request

+ Headers

User-Agent: node-superagent/3.8.3
AUTH: 5NM2p40Z8
Content-Type: application/json

+ Body

}

# Messages

## Positive: get list of messages [GET /messages]

+ Request

+ Headers

AUTH: 5NM2p40Z8
Content-Type: application/json

+ Body

{
"name": "McCoy"
}

+ Response 200 (application/json)

+ Headers

x-powered-by: Express
x-content-type-options: nosniff
content-type: application/json; charset=utf-8
content-length: 98
etag: W/"62-qllKFzcjdvCQphgbfpKVoPOu0hY"
date: Sun, 09 May 2021 21:58:28 GMT
connection: close
+ Body

}

+ Response 200 (application/json)

+ Headers

x-powered-by: Express
x-content-type-options: nosniff
content-type: application/json; charset=utf-8
content-length: 98
etag: W/"62-qllKFzcjdvCQphgbfpKVoPOu0hY"
date: Sun, 09 May 2021 21:58:28 GMT
connection: close
+ Body

[
{
"text": "butter property president flow nodded degree where keep",
"sender": 2
}
]

]

27 changes: 1 addition & 26 deletions examples/chat/documentation/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@
"Users"
],
"description": "Positive: show user profile",
"parameters": [
{
"name": "User-Agent",
"in": "header",
"schema": {
"type": "string"
},
"example": "node-superagent/3.8.3"
}
],
"parameters": [],
"responses": {
"200": {
"description": "Positive: show user profile",
Expand Down Expand Up @@ -70,14 +61,6 @@
],
"description": "Positive: change user name",
"parameters": [
{
"name": "User-Agent",
"in": "header",
"schema": {
"type": "string"
},
"example": "node-superagent/3.8.3"
},
{
"name": "AUTH",
"in": "header",
Expand Down Expand Up @@ -135,14 +118,6 @@
],
"description": "Positive: get list of messages",
"parameters": [
{
"name": "User-Agent",
"in": "header",
"schema": {
"type": "string"
},
"example": "node-superagent/3.8.3"
},
{
"name": "AUTH",
"in": "header",
Expand Down
Loading

0 comments on commit 79ca509

Please sign in to comment.