Skip to content

Commit

Permalink
test(snapshots): update snapshots
Browse files Browse the repository at this point in the history
Jest now ignores `undefined` props in snapshots.
See: jestjs/jest#6162
  • Loading branch information
francoischalifour committed Jul 30, 2018
1 parent 5a88965 commit 0b87643
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,6 @@ exports[`CurrentRefinedValues options.refinements can be used with numeric filte
>
<a
className="link-class"
href={undefined}
onClick={[Function]}
>
<div
Expand All @@ -1508,7 +1507,6 @@ exports[`CurrentRefinedValues options.refinements can be used with numeric filte
>
<a
className="link-class"
href={undefined}
onClick={[Function]}
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,35 @@

exports[`PriceRanges individual methods getForm should call the PriceRangesForm 1`] = `
<form
className={undefined}
onSubmit={[Function]}
>
<label
className={undefined}
>
<span
className={undefined}
>
<label>
<span>
$
</span>
<input
className={undefined}
onChange={[Function]}
type="number"
value=""
/>
</label>
<span
className={undefined}
>
<span>
</span>
<label
className={undefined}
>
<span
className={undefined}
>
<label>
<span>
$
</span>
<input
className={undefined}
onChange={[Function]}
type="number"
value=""
/>
</label>
<button
className={undefined}
type="submit"
>
hello
Expand Down Expand Up @@ -94,15 +80,11 @@ exports[`PriceRanges individual methods getItemFromFacetValue should display one

exports[`PriceRanges render should have the right number of items 1`] = `
<div>
<div
className={undefined}
>
<div>
<div
className=""
>
<a
className={undefined}
href={undefined}
onClick={[Function]}
>
<div
Expand All @@ -118,8 +100,6 @@ exports[`PriceRanges render should have the right number of items 1`] = `
className=""
>
<a
className={undefined}
href={undefined}
onClick={[Function]}
>
<div
Expand All @@ -135,8 +115,6 @@ exports[`PriceRanges render should have the right number of items 1`] = `
className=""
>
<a
className={undefined}
href={undefined}
onClick={[Function]}
>
<div
Expand All @@ -152,8 +130,6 @@ exports[`PriceRanges render should have the right number of items 1`] = `
className=""
>
<a
className={undefined}
href={undefined}
onClick={[Function]}
>
<div
Expand All @@ -167,47 +143,33 @@ exports[`PriceRanges render should have the right number of items 1`] = `
</div>
</div>
<form
className={undefined}
onSubmit={[Function]}
>
<label
className={undefined}
>
<span
className={undefined}
>
<label>
<span>
</span>
<input
className={undefined}
onChange={[Function]}
type="number"
value=""
/>
</label>
<span
className={undefined}
>
<span>
</span>
<label
className={undefined}
>
<span
className={undefined}
>
<label>
<span>
</span>
<input
className={undefined}
onChange={[Function]}
type="number"
value=""
/>
</label>
<button
className={undefined}
type="submit"
/>
</form>
Expand All @@ -223,8 +185,6 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
className=""
>
<a
className={undefined}
href={undefined}
onClick={[Function]}
>
<div
Expand All @@ -240,8 +200,6 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
className=""
>
<a
className={undefined}
href={undefined}
onClick={[Function]}
>
<div
Expand All @@ -257,8 +215,6 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
className=""
>
<a
className={undefined}
href={undefined}
onClick={[Function]}
>
<div
Expand All @@ -274,8 +230,6 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
className=""
>
<a
className={undefined}
href={undefined}
onClick={[Function]}
>
<div
Expand All @@ -289,47 +243,33 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
</div>
</div>
<form
className={undefined}
onSubmit={[Function]}
>
<label
className={undefined}
>
<span
className={undefined}
>
<label>
<span>
</span>
<input
className={undefined}
onChange={[Function]}
type="number"
value=""
/>
</label>
<span
className={undefined}
>
<span>
</span>
<label
className={undefined}
>
<span
className={undefined}
>
<label>
<span>
</span>
<input
className={undefined}
onChange={[Function]}
type="number"
value=""
/>
</label>
<button
className={undefined}
type="submit"
/>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ exports[`MenuSelect should render <MenuSelect /> with items 1`] = `
className="ais-body"
>
<select
className={undefined}
onChange={[Function]}
value=""
>
<option
className={undefined}
value=""
>
<div
Expand All @@ -32,7 +30,6 @@ exports[`MenuSelect should render <MenuSelect /> with items 1`] = `
/>
</option>
<option
className={undefined}
value="foo"
>
<div
Expand All @@ -44,7 +41,6 @@ exports[`MenuSelect should render <MenuSelect /> with items 1`] = `
/>
</option>
<option
className={undefined}
value="bar"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ exports[`headerFooter collapsible when collapsed 1`] = `
className="ais-root root ais-root__collapsible ais-root__collapsed"
>
<Unknown
data={undefined}
rootProps={
Object {
"className": "ais-header",
Expand Down Expand Up @@ -47,7 +46,6 @@ exports[`headerFooter collapsible when collapsed 1`] = `
/>
</div>
<Unknown
data={undefined}
rootProps={
Object {
"className": "ais-footer",
Expand All @@ -71,7 +69,6 @@ exports[`headerFooter collapsible when true 1`] = `
className="ais-root root ais-root__collapsible"
>
<Unknown
data={undefined}
rootProps={
Object {
"className": "ais-header",
Expand Down Expand Up @@ -109,7 +106,6 @@ exports[`headerFooter collapsible when true 1`] = `
/>
</div>
<Unknown
data={undefined}
rootProps={
Object {
"className": "ais-footer",
Expand Down Expand Up @@ -153,7 +149,6 @@ exports[`headerFooter should add a footer if such a template is passed 1`] = `
/>
</div>
<Unknown
data={undefined}
rootProps={
Object {
"className": "ais-footer",
Expand All @@ -176,7 +171,6 @@ exports[`headerFooter should add a header if such a template is passed 1`] = `
className="ais-root root"
>
<Unknown
data={undefined}
rootProps={
Object {
"className": "ais-header",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ exports[`rangeSlider widget usage max option will use the results min when only
pips={true}
refine={[Function]}
shouldAutoHideContainer={false}
step={undefined}
templateProps={
Object {
"templates": Object {
Expand Down Expand Up @@ -57,7 +56,6 @@ exports[`rangeSlider widget usage min option sets the right range 1`] = `
pips={true}
refine={[Function]}
shouldAutoHideContainer={false}
step={undefined}
templateProps={
Object {
"templates": Object {
Expand Down Expand Up @@ -98,7 +96,6 @@ exports[`rangeSlider widget usage min option will use the results max when only
pips={true}
refine={[Function]}
shouldAutoHideContainer={false}
step={undefined}
templateProps={
Object {
"templates": Object {
Expand Down Expand Up @@ -143,7 +140,6 @@ exports[`rangeSlider widget usage should \`collapse\` when options is provided 1
pips={true}
refine={[Function]}
shouldAutoHideContainer={true}
step={undefined}
templateProps={
Object {
"templates": Object {
Expand Down Expand Up @@ -184,7 +180,6 @@ exports[`rangeSlider widget usage should \`shouldAutoHideContainer\` when range
pips={true}
refine={[Function]}
shouldAutoHideContainer={true}
step={undefined}
templateProps={
Object {
"templates": Object {
Expand Down Expand Up @@ -225,7 +220,6 @@ exports[`rangeSlider widget usage should render without results 1`] = `
pips={true}
refine={[Function]}
shouldAutoHideContainer={true}
step={undefined}
templateProps={
Object {
"templates": Object {
Expand Down Expand Up @@ -266,7 +260,6 @@ exports[`rangeSlider widget usage with results calls twice ReactDOM.render 1`] =
pips={true}
refine={[Function]}
shouldAutoHideContainer={false}
step={undefined}
templateProps={
Object {
"templates": Object {
Expand Down Expand Up @@ -307,7 +300,6 @@ exports[`rangeSlider widget usage with results calls twice ReactDOM.render 2`] =
pips={true}
refine={[Function]}
shouldAutoHideContainer={false}
step={undefined}
templateProps={
Object {
"templates": Object {
Expand Down

0 comments on commit 0b87643

Please sign in to comment.