Skip to content

Commit

Permalink
fix(tests): fix officialtexts test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Oct 10, 2023
1 parent 4a24074 commit 2f7f01a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/officialtexts/__tests__/officialtexts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('API > official texts > create', () => {
await global.superapp
.post(`/${resource}`)
.set('Authorization', authorization)
.send({ ...payload, arbitrary: 'test' })
.send({ ...payload, arbitrary: 'test', jorftext: '12345' })
.expect(201);
const dbData = await global.db.collection('officialtexts').findOne({ id });
expect(dbData.arbitrary).toBe(undefined);
Expand Down Expand Up @@ -164,17 +164,17 @@ describe('API > official texts > list', () => {
await global.superapp
.post(`/${resource}`)
.set('Authorization', authorization)
.send({ ...payload, title: 'od1' })
.send({ ...payload, title: 'od1', jorftext: '23456' })
.expect(201);
await global.superapp
.post(`/${resource}`)
.set('Authorization', authorization)
.send({ ...payload, title: 'od2' })
.send({ ...payload, title: 'od2', jorftext: '23457' })
.expect(201);
await global.superapp
.post(`/${resource}`)
.set('Authorization', authorization)
.send({ ...payload, title: 'od3' })
.send({ ...payload, title: 'od3', jorftext: '23458' })
.expect(201);
});
it('can list successfully', async () => {
Expand Down

0 comments on commit 2f7f01a

Please sign in to comment.