Change casing in endpoint testing example
This commit is contained in:
parent
11c13da8f1
commit
641c52f2ce
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ const app = require('../app');
|
|||
|
||||
test.before(async t => {
|
||||
t.context.server = http.createServer(app);
|
||||
t.context.baseURL = await listen(t.context.server);
|
||||
t.context.baseUrl = await listen(t.context.server);
|
||||
});
|
||||
|
||||
test.after.always(t => {
|
||||
|
|
@ -25,7 +25,7 @@ test.after.always(t => {
|
|||
});
|
||||
|
||||
test.serial('get /user', async t => {
|
||||
const res = await got('/user', { baseURL: t.context.baseURL, json: true });
|
||||
const res = await got('/user', { baseUrl: t.context.baseUrl, json: true });
|
||||
t.is(res.body.email, 'ava@rocks.com');
|
||||
});
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue