Skip to content

Commit

Permalink
fix: add missing slice IDs (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: lihbr <[email protected]>
  • Loading branch information
lihbr and lihbr authored Sep 6, 2024
1 parent d562b55 commit 513e92f
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/value/sharedSliceVariation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const sharedSliceVariation = <
: 0;

return {
id: faker.hash(11),
slice_type: sliceType,
slice_label: null,
variation: model.id,
Expand Down
1 change: 1 addition & 0 deletions src/value/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const slice = <
: 0;

return {
id: faker.hash(11),
slice_type: sliceType,
slice_label: sliceLabel,
primary: valueForModelMap({
Expand Down
12 changes: 8 additions & 4 deletions test/snapshots/value-sharedSlice.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ Generated by [AVA](https://avajs.dev).
[
{
id: '38dfdcdbb26',
items: [],
primary: {},
slice_label: null,
slice_type: 'nulla',
variation: 'eu',
version: '38dfdcd',
version: '272c6fa',
},
{
id: '38dfdcdbb26',
items: [],
primary: {},
slice_label: null,
slice_type: 'nulla',
variation: 'eu',
version: '38dfdcd',
version: '272c6fa',
},
]

Expand All @@ -33,19 +35,21 @@ Generated by [AVA](https://avajs.dev).
[
{
id: '7716385ebd0',
items: [],
primary: {},
slice_label: null,
slice_type: 'ut',
variation: 'in',
version: '7716385',
version: '2c4e7ff',
},
{
id: '7716385ebd0',
items: [],
primary: {},
slice_label: null,
slice_type: 'ut',
variation: 'in',
version: '7716385',
version: '2c4e7ff',
},
]
Binary file modified test/snapshots/value-sharedSlice.test.ts.snap
Binary file not shown.
12 changes: 8 additions & 4 deletions test/snapshots/value-sharedSliceVariation.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ Generated by [AVA](https://avajs.dev).
[
{
id: 'acd989fed57',
items: [],
primary: {},
slice_label: null,
slice_type: 'sed',
variation: 'gravida',
version: 'acd989f',
version: 'f4ee04d',
},
{
id: 'acd989fed57',
items: [],
primary: {},
slice_label: null,
slice_type: 'sed',
variation: 'gravida',
version: 'acd989f',
version: 'f4ee04d',
},
]

Expand All @@ -33,19 +35,21 @@ Generated by [AVA](https://avajs.dev).
[
{
id: 'a2cb2c3ced5',
items: [],
primary: {},
slice_label: null,
slice_type: 'sit_amet',
variation: 'ut',
version: 'a2cb2c3',
version: 'a3606be',
},
{
id: 'a2cb2c3ced5',
items: [],
primary: {},
slice_label: null,
slice_type: 'sit_amet',
variation: 'ut',
version: 'a2cb2c3',
version: 'a3606be',
},
]
Binary file modified test/snapshots/value-sharedSliceVariation.test.ts.snap
Binary file not shown.
4 changes: 4 additions & 0 deletions test/snapshots/value-slice.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ Generated by [AVA](https://avajs.dev).
[
{
id: 'd53b39b965a',
items: [],
primary: {},
slice_label: 'Feugiat',
slice_type: 'tellus',
},
{
id: 'd53b39b965a',
items: [],
primary: {},
slice_label: 'Feugiat',
Expand All @@ -29,12 +31,14 @@ Generated by [AVA](https://avajs.dev).
[
{
id: 'e1d2fe94771',
items: [],
primary: {},
slice_label: 'Ut',
slice_type: 'in_massa',
},
{
id: 'e1d2fe94771',
items: [],
primary: {},
slice_label: 'Ut',
Expand Down
Binary file modified test/snapshots/value-slice.test.ts.snap
Binary file not shown.

0 comments on commit 513e92f

Please sign in to comment.