Skip to content

Commit

Permalink
fix: use Custom Type tab names with more variety
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Aug 25, 2021
1 parent 25b26b6 commit f2c905c
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion src/model/customType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const customType = (

const json: prismicT.CustomTypeModelDefinition = {};
for (let i = 0; i < tabsCount; i++) {
const tabName = changeCase.capitalCase(faker.company.bsNoun());
const tabName = changeCase.capitalCase(faker.lorem.word());
const tabFields: prismicT.CustomTypeModelTab = buildMockGroupFieldMap({
seed: config.seed,
configs: config.configs,
Expand Down
108 changes: 54 additions & 54 deletions test/snapshots/model-customType.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Generated by [AVA](https://avajs.dev).
{
id: 'systems',
json: {
Infrastructures: {
Sed: {
repellat_modi_saepe: {
config: {
label: 'Mindshare',
Expand All @@ -36,54 +36,7 @@ Generated by [AVA](https://avajs.dev).
{
id: 'blockchains',
json: {
Mindshare: {
amet_qui: {
config: {
allowTargetBlank: true,
label: 'Interfaces',
placeholder: 'Dicta officiis tenetur',
select: null,
},
type: 'Link',
},
dicta_nisi: {
config: {
constraint: {
height: null,
width: null,
},
label: 'Deliverables',
thumbnails: [
{
height: 1148,
name: 'E Business',
width: 1002,
},
{
height: 1054,
name: 'Web Readiness',
width: 1364,
},
{
height: 1711,
name: 'Web Readiness',
width: 1600,
},
],
},
type: 'Image',
},
non: {
config: {
allowTargetBlank: true,
label: 'Networks',
placeholder: 'Inventore fuga fugit',
single: 'em,preformatted,heading2,paragraph,embed,list-item,heading1,heading4,image,heading6',
},
type: 'StructuredText',
},
},
Portals: {
Commodi: {
et_corporis: {
config: {
label: 'E Markets',
Expand Down Expand Up @@ -128,7 +81,54 @@ Generated by [AVA](https://avajs.dev).
type: 'Select',
},
},
'Web Services': {
Est: {
amet_qui: {
config: {
allowTargetBlank: true,
label: 'Interfaces',
placeholder: 'Dicta officiis tenetur',
select: null,
},
type: 'Link',
},
dicta_nisi: {
config: {
constraint: {
height: null,
width: null,
},
label: 'Deliverables',
thumbnails: [
{
height: 1148,
name: 'EBusiness',
width: 1002,
},
{
height: 1054,
name: 'WebReadiness',
width: 1364,
},
{
height: 1711,
name: 'WebReadiness',
width: 1600,
},
],
},
type: 'Image',
},
non: {
config: {
allowTargetBlank: true,
label: 'Networks',
placeholder: 'Inventore fuga fugit',
single: 'em,preformatted,heading2,paragraph,embed,list-item,heading1,heading4,image,heading6',
},
type: 'StructuredText',
},
},
Hic: {
omnis: {
config: {
label: 'Blockchains',
Expand All @@ -152,7 +152,7 @@ Generated by [AVA](https://avajs.dev).
{
id: 'e_tailers',
json: {
Applications: {
Eum: {
doloribus_distinctio: {
config: {
allowTargetBlank: true,
Expand Down Expand Up @@ -188,7 +188,7 @@ Generated by [AVA](https://avajs.dev).
thumbnails: [
{
height: 1530,
name: 'E Services',
name: 'EServices',
width: 713,
},
{
Expand All @@ -201,7 +201,7 @@ Generated by [AVA](https://avajs.dev).
type: 'Image',
},
},
Blockchains: {
Repellat: {
accusantium: {
config: {
label: 'Architectures',
Expand Down Expand Up @@ -244,7 +244,7 @@ Generated by [AVA](https://avajs.dev).
{
id: 'infrastructures',
json: {
Interfaces: {
Error: {
doloremque_officia_aut: {
config: {
label: 'Functionalities',
Expand Down
Binary file modified test/snapshots/model-customType.test.ts.snap
Binary file not shown.

0 comments on commit f2c905c

Please sign in to comment.