Skip to content

Commit

Permalink
fix: generate image thumbnail names without spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Aug 25, 2021
1 parent af46c8c commit 25b26b6
Show file tree
Hide file tree
Showing 19 changed files with 1,322 additions and 2,264 deletions.
2 changes: 1 addition & 1 deletion src/model/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const image = (
thumbnails: Array(thumbnailsCount)
.fill(undefined)
.map(() => ({
name: changeCase.capitalCase(faker.company.bsNoun()),
name: changeCase.pascalCase(faker.company.bsNoun()),
width: faker.datatype.number({ min: 500, max: 2000 }),
height: faker.datatype.number({ min: 500, max: 2000 }),
})),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model-group.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Generated by [AVA](https://avajs.dev).
thumbnails: [
{
height: 1530,
name: 'E Services',
name: 'EServices',
width: 713,
},
{
Expand Down
Binary file modified test/snapshots/model-group.test.ts.snap
Binary file not shown.
4 changes: 2 additions & 2 deletions test/snapshots/model-sharedSliceVariation.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Generated by [AVA](https://avajs.dev).
thumbnails: [
{
height: 588,
name: 'Web Readiness',
name: 'WebReadiness',
width: 1711,
},
],
Expand Down Expand Up @@ -285,7 +285,7 @@ Generated by [AVA](https://avajs.dev).
},
{
height: 1645,
name: 'Action Items',
name: 'ActionItems',
width: 1023,
},
{
Expand Down
Binary file modified test/snapshots/model-sharedSliceVariation.test.ts.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion test/snapshots/model-slice.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Generated by [AVA](https://avajs.dev).
},
{
height: 1169,
name: 'E Tailers',
name: 'ETailers',
width: 920,
},
{
Expand Down
Binary file modified test/snapshots/model-slice.test.ts.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion test/snapshots/model-sliceZone.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ Generated by [AVA](https://avajs.dev).
},
{
height: 1018,
name: 'Supply Chains',
name: 'SupplyChains',
width: 1856,
},
],
Expand Down
Binary file modified test/snapshots/model-sliceZone.test.ts.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion test/snapshots/value-customType.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Generated by [AVA](https://avajs.dev).
},
],
provident_velit: {
'E Services': {
EServices: {
alt: 'Fuga totam perferendis ut non fugiat eligendi omnis repellat.',
copyright: 'Ipsum rem eos.',
dimensions: {
Expand Down
Binary file modified test/snapshots/value-customType.test.ts.snap
Binary file not shown.
Loading

0 comments on commit 25b26b6

Please sign in to comment.