Skip to content

Commit 633dbe5

Browse files
committed
Merge branch 'staging'
2 parents 2155599 + 73dd768 commit 633dbe5

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/api/categories/__tests__/categories.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ beforeAll(async () => {
2828
nature: 'Publication au JO',
2929
type: 'Loi',
3030
jorftext: 'jorftextNumber',
31+
publicationDate: '2020-06-01',
3132
nor: 'norNumber',
3233
title: 'title',
3334
pageUrl: 'http://string.fr',

src/api/officialtexts/__tests__/officialtexts.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ const payload = {
1212
nor: 'norNumber',
1313
title: 'title',
1414
pageUrl: 'http://string.fr',
15+
publicationDate: '2020-06-01',
1516
signatureDate: '2020',
1617
endDate: '2020',
1718
textExtract: 'string',
1819
};
19-
const updatePayLoad = { nature: 'Publication au BOESR', type: 'Décret' };
20+
const updatePayLoad = { nature: 'Publication au BOESR', type: 'Décret', publicationDate: '2020-06-01' };
2021

2122
beforeAll(async () => {
2223
authorization = await global.utils.createUser('user');

src/api/terms/__tests__/terms.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ beforeAll(async () => {
2828
nature: 'Publication au JO',
2929
type: 'Loi',
3030
jorftext: 'jorftextNumber',
31+
publicationDate: '2020-06-01',
3132
nor: 'norNumber',
3233
title: 'title',
3334
pageUrl: 'http://string.fr',

src/openapi/paths/officialtexts/officialtexts.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ collectionMethods:
4545
- type
4646
- title
4747
- pageUrl
48+
- publicationDate
4849
allOf:
4950
- $ref: '../../api.yml#/components/schemas/OfficialTextPayload'
5051
responses:

0 commit comments

Comments
 (0)