Skip to content

Commit b82c960

Browse files
committed
test: update
1 parent ab1dd75 commit b82c960

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/__tests__/__snapshots__/index.spec.tsx.snap

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ exports[`HTML Output given anyOf combiner placed next to allOf given allOf mergi
379379
<input type=\\"text\\" style=\\"font-size: 16px\\" />
380380
<label>
381381
<select size=\\"2\\">
382-
<option value=\\"0\\">Admin</option>
383-
<option value=\\"1\\">Editor</option>
382+
<option value=\\"0\\">1. Admin</option>
383+
<option value=\\"1\\">2. Editor</option>
384384
</select>
385385
</label>
386386
</div>
@@ -394,7 +394,7 @@ exports[`HTML Output given anyOf combiner placed next to allOf given allOf mergi
394394
type=\\"button\\"
395395
class=\\"hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"
396396
>
397-
<div><div>Admin</div></div>
397+
<div><div>1. Admin</div></div>
398398
<div></div>
399399
</button>
400400
</div>
@@ -526,8 +526,8 @@ exports[`HTML Output given array with oneOf containing items, should merge it co
526526
<input type=\\"text\\" style=\\"font-size: 16px\\" />
527527
<label>
528528
<select size=\\"2\\">
529-
<option value=\\"0\\">array of strings</option>
530-
<option value=\\"1\\">array of numbers</option>
529+
<option value=\\"0\\">1. array of strings</option>
530+
<option value=\\"1\\">2. array of numbers</option>
531531
</select>
532532
</label>
533533
</div>
@@ -541,7 +541,7 @@ exports[`HTML Output given array with oneOf containing items, should merge it co
541541
type=\\"button\\"
542542
class=\\"hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"
543543
>
544-
<div><div>array of strings</div></div>
544+
<div><div>1. array of strings</div></div>
545545
<div></div>
546546
</button>
547547
</div>
@@ -680,8 +680,8 @@ exports[`HTML Output given oneOf combiner placed next to allOf given allOf mergi
680680
<input type=\\"text\\" style=\\"font-size: 16px\\" />
681681
<label>
682682
<select size=\\"2\\">
683-
<option value=\\"0\\">Admin</option>
684-
<option value=\\"1\\">Editor</option>
683+
<option value=\\"0\\">1. Admin</option>
684+
<option value=\\"1\\">2. Editor</option>
685685
</select>
686686
</label>
687687
</div>
@@ -695,7 +695,7 @@ exports[`HTML Output given oneOf combiner placed next to allOf given allOf mergi
695695
type=\\"button\\"
696696
class=\\"hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"
697697
>
698-
<div><div>Admin</div></div>
698+
<div><div>1. Admin</div></div>
699699
<div></div>
700700
</button>
701701
</div>
@@ -2605,8 +2605,8 @@ exports[`HTML Output should match combiners/allOfs/with-type.json 1`] = `
26052605
<input type=\\"text\\" style=\\"font-size: 16px\\" />
26062606
<label>
26072607
<select size=\\"2\\">
2608-
<option value=\\"0\\">BugExample</option>
2609-
<option value=\\"1\\">BugExample</option>
2608+
<option value=\\"0\\">1. BugExample</option>
2609+
<option value=\\"1\\">2. BugExample</option>
26102610
</select>
26112611
</label>
26122612
</div>
@@ -2620,7 +2620,7 @@ exports[`HTML Output should match combiners/allOfs/with-type.json 1`] = `
26202620
type=\\"button\\"
26212621
class=\\"hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"
26222622
>
2623-
<div><div>BugExample</div></div>
2623+
<div><div>1. BugExample</div></div>
26242624
<div></div>
26252625
</button>
26262626
</div>
@@ -2776,8 +2776,8 @@ exports[`HTML Output should match combiners/oneof-with-array-type.json 1`] = `
27762776
<input type=\\"text\\" style=\\"font-size: 16px\\" />
27772777
<label>
27782778
<select size=\\"2\\">
2779-
<option value=\\"0\\">array of objects</option>
2780-
<option value=\\"1\\">array of objects</option>
2779+
<option value=\\"0\\">1. array of objects</option>
2780+
<option value=\\"1\\">2. array of objects</option>
27812781
</select>
27822782
</label>
27832783
</div>
@@ -2791,7 +2791,7 @@ exports[`HTML Output should match combiners/oneof-with-array-type.json 1`] = `
27912791
type=\\"button\\"
27922792
class=\\"hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"
27932793
>
2794-
<div><div>array of objects</div></div>
2794+
<div><div>1. array of objects</div></div>
27952795
<div></div>
27962796
</button>
27972797
</div>
@@ -2873,8 +2873,8 @@ exports[`HTML Output should match combiners/oneof-within-array-item.json 1`] = `
28732873
<input type=\\"text\\" style=\\"font-size: 16px\\" />
28742874
<label>
28752875
<select size=\\"2\\">
2876-
<option value=\\"0\\">array of A-s</option>
2877-
<option value=\\"1\\">array of B-s</option>
2876+
<option value=\\"0\\">1. array of A-s</option>
2877+
<option value=\\"1\\">2. array of B-s</option>
28782878
</select>
28792879
</label>
28802880
</div>
@@ -2888,7 +2888,7 @@ exports[`HTML Output should match combiners/oneof-within-array-item.json 1`] = `
28882888
type=\\"button\\"
28892889
class=\\"hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"
28902890
>
2891-
<div><div>array of A-s</div></div>
2891+
<div><div>1. array of A-s</div></div>
28922892
<div></div>
28932893
</button>
28942894
</div>
@@ -3122,8 +3122,8 @@ exports[`HTML Output should match default-schema.json 1`] = `
31223122
<input type=\\"text\\" style=\\"font-size: 16px\\" />
31233123
<label>
31243124
<select size=\\"2\\">
3125-
<option value=\\"0\\">object</option>
3126-
<option value=\\"1\\">array of integers</option>
3125+
<option value=\\"0\\">1. object</option>
3126+
<option value=\\"1\\">2. array of integers</option>
31273127
</select>
31283128
</label>
31293129
</div>
@@ -3137,7 +3137,7 @@ exports[`HTML Output should match default-schema.json 1`] = `
31373137
type=\\"button\\"
31383138
class=\\"hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"
31393139
>
3140-
<div><div>object</div></div>
3140+
<div><div>1. object</div></div>
31413141
<div></div>
31423142
</button>
31433143
</div>

src/components/shared/__tests__/Property.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('Property component', () => {
141141

142142
const wrapper = render(schema);
143143
expect(wrapper.html()).toMatchInlineSnapshot(
144-
`"<div class=\\"\\"><div class=\\"sl-text-sm sl-relative\\" style=\\"margin-left: 20px;\\"><div class=\\"sl-flex\\"><div class=\\"sl-min-w-0 sl-flex-grow\\"><div class=\\"\\"><div class=\\"sl-flex sl-items-center sl-my-2\\"><div class=\\"sl-flex sl-items-center sl-text-base sl-flex-1\\"><div class=\\"sl-select sl-relative\\"><div style=\\"border: 0px; clip-path: inset(50%); height: 1px; margin: 0px -1px -1px 0px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;\\" aria-hidden=\\"true\\"><input type=\\"text\\" tabindex=\\"-1\\" style=\\"font-size: 16px;\\"><label><select size=\\"2\\" tabindex=\\"-1\\"><option value=\\"0\\">array of strings</option><option value=\\"1\\">array of numbers</option></select></label></div><div class=\\"sl-relative\\"><button aria-haspopup=\\"listbox\\" aria-expanded=\\"false\\" aria-label=\\"Pick a type\\" id=\\"react-aria-0-3\\" aria-labelledby=\\"react-aria-0-3 react-aria-0-5\\" type=\\"button\\" class=\\"sl-button sl-w-full sl-h-sm sl-text-base sl-font-normal sl-px-1.5 sl-bg-transparent sl-text-body sl-rounded sl-border-transparent hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"><div class=\\"sl-flex sl-flex-grow sl-justify-items-start sl-items-center\\"><div class=\\"sl-pr-1\\">array of strings</div></div><div class=\\"sl--mr-0.5 sl-ml-0.5\\"><svg aria-hidden=\\"true\\" focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"chevron-down\\" class=\\"svg-inline--fa fa-chevron-down fa-w-14 fa-xs sl-icon\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 448 512\\"><path fill=\\"currentColor\\" d=\\"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\\"></path></svg></div></button></div></div></div></div></div></div><div></div></div></div></div>"`,
144+
`"<div class=\\"\\"><div class=\\"sl-text-sm sl-relative\\" style=\\"margin-left: 20px;\\"><div class=\\"sl-flex\\"><div class=\\"sl-min-w-0 sl-flex-grow\\"><div class=\\"\\"><div class=\\"sl-flex sl-items-center sl-my-2\\"><div class=\\"sl-flex sl-items-center sl-text-base sl-flex-1\\"><div class=\\"sl-select sl-relative\\"><div style=\\"border: 0px; clip-path: inset(50%); height: 1px; margin: 0px -1px -1px 0px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;\\" aria-hidden=\\"true\\"><input type=\\"text\\" tabindex=\\"-1\\" style=\\"font-size: 16px;\\"><label><select size=\\"2\\" tabindex=\\"-1\\"><option value=\\"0\\">1. array of strings</option><option value=\\"1\\">2. array of numbers</option></select></label></div><div class=\\"sl-relative\\"><button aria-haspopup=\\"listbox\\" aria-expanded=\\"false\\" aria-label=\\"Pick a type\\" id=\\"react-aria-0-3\\" aria-labelledby=\\"react-aria-0-3 react-aria-0-5\\" type=\\"button\\" class=\\"sl-button sl-w-full sl-h-sm sl-text-base sl-font-normal sl-px-1.5 sl-bg-transparent sl-text-body sl-rounded sl-border-transparent hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"><div class=\\"sl-flex sl-flex-grow sl-justify-items-start sl-items-center\\"><div class=\\"sl-pr-1\\">1. array of strings</div></div><div class=\\"sl--mr-0.5 sl-ml-0.5\\"><svg aria-hidden=\\"true\\" focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"chevron-down\\" class=\\"svg-inline--fa fa-chevron-down fa-w-14 fa-xs sl-icon\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 448 512\\"><path fill=\\"currentColor\\" d=\\"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\\"></path></svg></div></button></div></div></div></div></div></div><div></div></div></div></div>"`,
145145
);
146146
});
147147

0 commit comments

Comments
 (0)