Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoegel committed Nov 1, 2023
1 parent 54b4476 commit c0283c5
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 54 deletions.
78 changes: 45 additions & 33 deletions src/components/__tests__/__snapshots__/FieldDetails.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,62 +1,66 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`FieldDetailsComponent renders correctly 1`] = `
<div>
<div
class="field-details"
>
<div>
<span
class="sc-kpDqfm sc-dAlyuH cGRfjn gHomYR"
class="sc-kEqXSa sc-iqAclL kbXjKX fIBWK"
>
test type prefix
</span>
<span
class="sc-kpDqfm sc-jlZhew cGRfjn dYtiIA"
class="sc-kEqXSa sc-crzoAE kbXjKX dPbcpi"
>
array
</span>
<span
class="sc-kpDqfm sc-cwHptR cGRfjn gyVIPr"
class="sc-kEqXSa sc-dIsUp kbXjKX jKcFhO"
>
(test title)
</span>
<span>
<span
class="field-constraints"
>
<span
class="sc-kpDqfm sc-gFqAkR cGRfjn fYEICH"
class="sc-kEqXSa sc-iemWCZ kbXjKX jirMag"
>
</span>
</span>
</div>
<div>
<span
class="sc-kpDqfm cGRfjn"
class="sc-kEqXSa kbXjKX"
>
Default:
</span>
<span
class="sc-kpDqfm sc-eldPxv cGRfjn ehWiAn"
class="sc-kEqXSa sc-fFSPTT kbXjKX jxiCED field-example"
>
[]
</span>
</div>
<div>
<span
class="sc-kpDqfm cGRfjn"
class="sc-kEqXSa kbXjKX"
>
Example:
</span>
<span
class="sc-kpDqfm sc-eldPxv cGRfjn ehWiAn"
class="sc-kEqXSa sc-fFSPTT kbXjKX jxiCED field-example"
>
"example"
</span>
</div>
<div>
<div
class="sc-lcIPJg sc-hknOHE gBHqkN jFBMaE"
class="sc-iTVJFM sc-khIgEk KQjrk bwNvGY"
>
<p>
test description
Expand All @@ -69,60 +73,64 @@ exports[`FieldDetailsComponent renders correctly 1`] = `
`;

exports[`FieldDetailsComponent renders correctly when default value is object in request body 1`] = `
<div>
<div
class="field-details"
>
<div>
<span
class="sc-kpDqfm sc-dAlyuH cGRfjn gHomYR"
class="sc-kEqXSa sc-iqAclL kbXjKX fIBWK"
/>
<span
class="sc-kpDqfm sc-jlZhew cGRfjn dYtiIA"
class="sc-kEqXSa sc-crzoAE kbXjKX dPbcpi"
>
object
</span>
<span
class="sc-kpDqfm sc-cwHptR cGRfjn gyVIPr"
class="sc-kEqXSa sc-dIsUp kbXjKX jKcFhO"
>
(test title)
</span>
<span>
<span
class="field-constraints"
>
<span
class="sc-kpDqfm sc-gFqAkR cGRfjn fYEICH"
class="sc-kEqXSa sc-iemWCZ kbXjKX jirMag"
>
</span>
</span>
</div>
<div>
<span
class="sc-kpDqfm cGRfjn"
class="sc-kEqXSa kbXjKX"
>
Default:
</span>
<span
class="sc-kpDqfm sc-eldPxv cGRfjn ehWiAn"
class="sc-kEqXSa sc-fFSPTT kbXjKX jxiCED field-example"
>
{"properties":{}}
</span>
</div>
<div>
<span
class="sc-kpDqfm cGRfjn"
class="sc-kEqXSa kbXjKX"
>
Example:
</span>
<span
class="sc-kpDqfm sc-eldPxv cGRfjn ehWiAn"
class="sc-kEqXSa sc-fFSPTT kbXjKX jxiCED field-example"
>
"example"
</span>
</div>
<div>
<div
class="sc-lcIPJg sc-hknOHE gBHqkN jFBMaE"
class="sc-iTVJFM sc-khIgEk KQjrk bwNvGY"
>
<p>
test description
Expand All @@ -135,35 +143,39 @@ exports[`FieldDetailsComponent renders correctly when default value is object in
`;

exports[`FieldDetailsComponent renders correctly when field items have string type and pattern 1`] = `
<div>
<div
class="field-details"
>
<div>
<span
class="sc-kpDqfm sc-dAlyuH cGRfjn gHomYR"
class="sc-kEqXSa sc-iqAclL kbXjKX fIBWK"
/>
<span
class="sc-kpDqfm sc-jlZhew cGRfjn dYtiIA"
class="sc-kEqXSa sc-crzoAE kbXjKX dPbcpi"
>
Array of strings
</span>
<span
class="sc-kpDqfm sc-cwHptR cGRfjn gyVIPr"
class="sc-kEqXSa sc-dIsUp kbXjKX jKcFhO"
>
(test title)
</span>
<span>
<span
class="field-constraints"
>
<span
class="sc-kpDqfm sc-gFqAkR cGRfjn fYEICH"
class="sc-kEqXSa sc-iemWCZ kbXjKX jirMag"
>
</span>
</span>
<span
class="sc-kpDqfm sc-dAlyuH sc-dxcDKg cGRfjn gHomYR gXntsr"
class="sc-kEqXSa sc-iqAclL sc-iIgjPs kbXjKX fIBWK dZiNhe"
>
[
<span
class="sc-kpDqfm sc-eDPEul cGRfjn erJHow"
class="sc-kEqXSa sc-fnVZcZ kbXjKX iaObLQ field-pattern"
>
^see regex[0-9]$
</span>
Expand All @@ -173,20 +185,20 @@ exports[`FieldDetailsComponent renders correctly when field items have string ty
<div>
<span
class="sc-kpDqfm cGRfjn"
class="sc-kEqXSa kbXjKX"
>
Example:
</span>
<span
class="sc-kpDqfm sc-eldPxv cGRfjn ehWiAn"
class="sc-kEqXSa sc-fFSPTT kbXjKX jxiCED field-example"
>
"example"
</span>
</div>
<div>
<div
class="sc-lcIPJg sc-hknOHE gBHqkN jFBMaE"
class="sc-iTVJFM sc-khIgEk KQjrk bwNvGY"
>
<p>
test description
Expand Down
16 changes: 8 additions & 8 deletions src/components/__tests__/__snapshots__/OneOfSchema.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ exports[`Components SchemaView OneOf deprecated should match snapshot 1`] = `
class="oneOf-schema"
>
<span
class="sc-fUnMCh hPwMmL"
class="sc-kfYoZR juYXUf"
>
One of
</span>
<div
class="sc-feUZmu bTropM"
class="sc-dlMDgC EoFth"
>
<button
class="sc-hzhJZQ ilKqWS"
class="sc-fKgJPI iEPbLk"
>
string
</button>
<button
class="sc-hzhJZQ emRRrf"
class="sc-fKgJPI bpjiHN"
>
integer
</button>
</div>
<div>
<span
class="sc-jEACwC gWyYnj"
class="sc-bqGGPW eSYQnm"
type="warning"
>
Deprecated
Expand All @@ -37,18 +37,18 @@ exports[`Components SchemaView OneOf deprecated should match snapshot 1`] = `
>
<div>
<span
class="sc-Nxspf sc-cfxfcM cXxAXt jrGEaR"
class="sc-gSYDnn sc-laZMeE exYxiD lataxO"
/>
<span
class="sc-Nxspf sc-gFAWRd cXxAXt dYzdDr"
class="sc-gSYDnn sc-iNiQyp exYxiD CFShw"
>
string
</span>
</div>
<div>
<div
class="sc-eeDRCY sc-eBMEME gTGgei fbXBig"
class="sc-iJCRrE sc-cBoqAE jCdxGr dGTDJo"
/>
</div>
</div>
Expand Down
Loading

0 comments on commit c0283c5

Please sign in to comment.