Skip to content

Commit

Permalink
chore(deps): update dependency jest to v23.4.2 (#3045)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency Jest to v23.4.2

Introduces method `.toHaveBeenNthCalledWith()` which is handy for our tests.

* test(snapshots): update snapshots

Jest now ignores `undefined` props in snapshots.
See: jestjs/jest#6162
  • Loading branch information
francoischalifour authored and bobylito committed Jul 30, 2018
1 parent 30da254 commit d0ba9a2
Show file tree
Hide file tree
Showing 7 changed files with 320 additions and 327 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"happypack": "4.0.1",
"html-webpack-plugin": "2.30.1",
"inquirer": "5.2.0",
"jest": "22.4.2",
"jest": "23.4.2",
"jsdom-global": "3.0.2",
"json": "9.0.6",
"mkdirp": "0.5.1",
Expand Down
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
Loading

0 comments on commit d0ba9a2

Please sign in to comment.