Skip to content

Commit 0bee8e6

Browse files
committed
PROCESS: Tests fixed.
Regression caused by updated dependencies (Joi v16+).
1 parent 5ee463a commit 0bee8e6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

__tests__/frontend_authentication_spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const APP_HOST = process.env.APP_HOST || 'http://localhost:1337';
55

66
const schema = joi.object().keys({
77
ok: joi.boolean().required(),
8-
name: joi.string()}
8+
name: joi.forbidden()}
99
);
1010

1111
it('authenticates with HTTP basic authentication', () => frisby
@@ -22,7 +22,7 @@ it('authenticates with HTTP basic authentication', () => frisby
2222
it('authenticates with HTTP cookie if credentials are valid', () => frisby
2323
.get(`${APP_HOST}/_session`)
2424
.expect('status', 200)
25-
.expect('jsonTypes', schema.forbiddenKeys('name'))
25+
.expect('jsonTypes', schema)
2626
.then(() => frisby
2727
.post(`${APP_HOST}/_session`, {name:'alice', password:'whiterabbit'})
2828
.expect('status', 200)
@@ -42,7 +42,7 @@ it('authenticates with HTTP cookie if credentials are valid', () => frisby
4242
)
4343
.then(() => frisby
4444
.get(`${APP_HOST}/_session`, {headers:{cookie}})
45-
.expect('jsonTypes', schema.forbiddenKeys('name'))
45+
.expect('jsonTypes', schema)
4646
)
4747
.then(() => frisby
4848
.post(`${APP_HOST}/`, {body:{}, headers:{cookie}})

0 commit comments

Comments
 (0)