Skip to content

Commit

Permalink
Jest 19 (ant-design#5361)
Browse files Browse the repository at this point in the history
* Upgeade to jest 19

* Use jest.spyOn
  • Loading branch information
yesmeck authored and afc163 committed Mar 17, 2017
1 parent 0ed66cf commit f6b1e94
Show file tree
Hide file tree
Showing 66 changed files with 17,309 additions and 8,781 deletions.
2 changes: 2 additions & 0 deletions components/__tests__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`antd exports modules correctly 1`] = `
Array [
"Affix",
Expand Down
38 changes: 25 additions & 13 deletions components/affix/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
exports[`test renders ./components/affix/demo/basic.md correctly 1`] = `
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`renders ./components/affix/demo/basic.md correctly 1`] = `
<div>
<div>
<div
class="">
class=""
>
<button
class="ant-btn ant-btn-primary"
type="button">
type="button"
>
<span>
Affix top
</span>
Expand All @@ -15,10 +19,12 @@ exports[`test renders ./components/affix/demo/basic.md correctly 1`] = `
<br />
<div>
<div
class="">
class=""
>
<button
class="ant-btn ant-btn-primary"
type="button">
type="button"
>
<span>
Affix bottom
</span>
Expand All @@ -28,13 +34,15 @@ exports[`test renders ./components/affix/demo/basic.md correctly 1`] = `
</div>
`;

exports[`test renders ./components/affix/demo/on-change.md correctly 1`] = `
exports[`renders ./components/affix/demo/on-change.md correctly 1`] = `
<div>
<div
class="">
class=""
>
<button
class="ant-btn"
type="button">
type="button"
>
<span>
120px to affix top
</span>
Expand All @@ -43,17 +51,21 @@ exports[`test renders ./components/affix/demo/on-change.md correctly 1`] = `
</div>
`;

exports[`test renders ./components/affix/demo/target.md correctly 1`] = `
exports[`renders ./components/affix/demo/target.md correctly 1`] = `
<div
class="scrollable-container">
class="scrollable-container"
>
<div
class="background">
class="background"
>
<div>
<div
class="">
class=""
>
<button
class="ant-btn ant-btn-primary"
type="button">
type="button"
>
<span>
Fixed at the top of container
</span>
Expand Down
Loading

0 comments on commit f6b1e94

Please sign in to comment.