@socialgouv/kali-data-types 2.311.0 → 2.314.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socialgouv/kali-data-types",
3
- "version": "2.311.0",
3
+ "version": "2.314.0",
4
4
  "devDependencies": {
5
5
  "@babel/core": "^7.16.0",
6
6
  "@babel/plugin-transform-modules-commonjs": "^7.16.0",
@@ -3,10 +3,10 @@ import getArticleWithParentSections from "../getArticleWithParentSections";
3
3
  describe(`libs/getArticleWithParentSections()`, () => {
4
4
  describe(`should match properties`, () => {
5
5
  it(`with an existing main article ID`, () => {
6
- const received = getArticleWithParentSections("KALIARTI000019508230");
6
+ const received = getArticleWithParentSections("KALIARTI000005781804");
7
7
 
8
8
  expect(received.data.cid).toBe("KALIARTI000005781804");
9
- expect(received.data.id).toBe("KALIARTI000019508230");
9
+ expect(received.data.id).toBe("KALIARTI000045466361");
10
10
  expect(received.sections.length).toBeGreaterThan(1);
11
11
  });
12
12
 
@@ -14,7 +14,7 @@ describe(`libs/getArticleWithParentSections()`, () => {
14
14
  const received = getArticleWithParentSections("KALIARTI000005781804");
15
15
 
16
16
  expect(received.data.cid).toBe("KALIARTI000005781804");
17
- expect(received.data.id).toBe("KALIARTI000019508230");
17
+ expect(received.data.id).toBe("KALIARTI000045466361");
18
18
  expect(received.sections.length).toBeGreaterThan(1);
19
19
  });
20
20
 
@@ -3,10 +3,10 @@ import getArticleWithPath from "../getArticleWithPath";
3
3
  describe(`libs/getArticleWithPath()`, () => {
4
4
  describe(`should match properties`, () => {
5
5
  it(`with an existing main article ID`, () => {
6
- const received = getArticleWithPath("KALIARTI000019508230");
6
+ const received = getArticleWithPath("KALIARTI000005781818");
7
7
 
8
- expect(received.data.cid).toBe("KALIARTI000005781804");
9
- expect(received.data.id).toBe("KALIARTI000019508230");
8
+ expect(received.data.cid).toBe("KALIARTI000005781818");
9
+ expect(received.data.id).toBe("KALIARTI000005781818");
10
10
  expect(received.path.length).toBeGreaterThan(1);
11
11
  });
12
12
 
@@ -14,7 +14,7 @@ describe(`libs/getArticleWithPath()`, () => {
14
14
  const received = getArticleWithPath("KALIARTI000005781804");
15
15
 
16
16
  expect(received.data.cid).toBe("KALIARTI000005781804");
17
- expect(received.data.id).toBe("KALIARTI000019508230");
17
+ expect(received.data.id).toBe("KALIARTI000045466361");
18
18
  expect(received.path.length).toBeGreaterThan(1);
19
19
  });
20
20