Update README.md
This commit is contained in:
10
README.md
10
README.md
@ -54,8 +54,10 @@ const users = [
|
|||||||
{ "id": 3, "name": "Francesco", "age": 24 }
|
{ "id": 3, "name": "Francesco", "age": 24 }
|
||||||
]
|
]
|
||||||
|
|
||||||
/* response mocks for /users */
|
module.exports = MockBase => class MockUsers extends MockBase {
|
||||||
module.exports = [
|
mocks () {
|
||||||
|
/* response mocks for /users */
|
||||||
|
return [
|
||||||
{
|
{
|
||||||
route: '/users',
|
route: '/users',
|
||||||
responses: [
|
responses: [
|
||||||
@ -80,7 +82,9 @@ module.exports = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, launch `ws` passing in your mock response file:
|
Next, launch `ws` passing in your mock response file:
|
||||||
|
Reference in New Issue
Block a user