Change casing in endpoint testing example

This commit is contained in:
Alex Dransfield 2019-11-17 14:37:42 +00:00 committed by Mark Wubben
parent 11c13da8f1
commit 641c52f2ce

View file

@ -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');
});
```