From f6b1e942e380a4e8a6eb621ab31e6f4190ee098c Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Fri, 17 Mar 2017 18:56:30 +0800 Subject: [PATCH] Jest 19 (#5361) * Upgeade to jest 19 * Use jest.spyOn --- .../__snapshots__/index.test.js.snap | 2 + .../__tests__/__snapshots__/demo.test.js.snap | 38 +- .../__tests__/__snapshots__/demo.test.js.snap | 265 +- .../__tests__/__snapshots__/demo.test.js.snap | 93 +- .../__tests__/__snapshots__/demo.test.js.snap | 203 +- .../__tests__/__snapshots__/demo.test.js.snap | 12 +- .../__tests__/__snapshots__/demo.test.js.snap | 994 ++- .../breadcrumb/__tests__/Breadcrumb.test.js | 20 +- .../__snapshots__/Breadcrumb.test.js.snap | 11 +- .../__tests__/__snapshots__/demo.test.js.snap | 132 +- .../__tests__/__snapshots__/demo.test.js.snap | 299 +- .../__snapshots__/index.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 2764 ++++--- .../__tests__/__snapshots__/demo.test.js.snap | 161 +- .../__tests__/__snapshots__/demo.test.js.snap | 124 +- .../__tests__/__snapshots__/demo.test.js.snap | 163 +- .../__snapshots__/index.test.js.snap | 107 +- .../__tests__/__snapshots__/demo.test.js.snap | 240 +- .../__tests__/__snapshots__/demo.test.js.snap | 342 +- .../__snapshots__/RangePicker.test.js.snap | 1499 ++-- .../__tests__/__snapshots__/demo.test.js.snap | 500 +- .../__tests__/__snapshots__/demo.test.js.snap | 102 +- .../__tests__/__snapshots__/demo.test.js.snap | 1613 ++-- .../__tests__/__snapshots__/demo.test.js.snap | 466 +- .../__tests__/__snapshots__/demo.test.js.snap | 210 +- .../__tests__/__snapshots__/demo.test.js.snap | 287 +- .../__tests__/__snapshots__/demo.test.js.snap | 582 +- .../__tests__/__snapshots__/demo.test.js.snap | 1005 ++- .../__tests__/__snapshots__/demo.test.js.snap | 287 +- .../__tests__/__snapshots__/demo.test.js.snap | 28 +- .../__tests__/__snapshots__/demo.test.js.snap | 62 +- components/modal/__tests__/comfirm.test.js | 16 +- .../__tests__/__snapshots__/demo.test.js.snap | 56 +- .../__tests__/__snapshots__/demo.test.js.snap | 360 +- .../__tests__/__snapshots__/demo.test.js.snap | 76 +- .../__tests__/__snapshots__/demo.test.js.snap | 84 +- .../__tests__/__snapshots__/demo.test.js.snap | 382 +- .../__tests__/__snapshots__/demo.test.js.snap | 476 +- .../__snapshots__/radio.test.js.snap | 14 +- .../__tests__/__snapshots__/demo.test.js.snap | 501 +- .../__tests__/__snapshots__/demo.test.js.snap | 500 +- .../__tests__/__snapshots__/demo.test.js.snap | 574 +- .../__tests__/__snapshots__/demo.test.js.snap | 167 +- .../__tests__/__snapshots__/demo.test.js.snap | 815 +- .../__tests__/__snapshots__/demo.test.js.snap | 58 +- .../__snapshots__/Table.filter.test.js.snap | 185 +- .../Table.pagination.test.js.snap | 65 +- .../Table.rowSelection.test.js.snap | 14 +- .../__snapshots__/Table.sorter.test.js.snap | 23 +- .../__snapshots__/Table.test.js.snap | 71 +- .../__tests__/__snapshots__/demo.test.js.snap | 6751 +++++++++++------ .../__tests__/__snapshots__/demo.test.js.snap | 567 +- .../__tests__/__snapshots__/demo.test.js.snap | 204 +- .../__tests__/__snapshots__/demo.test.js.snap | 106 +- .../__snapshots__/index.test.js.snap | 5 +- .../__tests__/__snapshots__/demo.test.js.snap | 220 +- .../__tests__/__snapshots__/demo.test.js.snap | 62 +- .../__tests__/__snapshots__/demo.test.js.snap | 552 +- .../__snapshots__/index.test.js.snap | 131 +- .../__tests__/__snapshots__/list.test.js.snap | 80 +- .../__snapshots__/search.test.js.snap | 38 +- .../__tests__/__snapshots__/demo.test.js.snap | 68 +- .../__tests__/__snapshots__/demo.test.js.snap | 543 +- .../__tests__/__snapshots__/demo.test.js.snap | 247 +- package.json | 2 +- tests/__snapshots__/index.test.js.snap | 2 + 66 files changed, 17581 insertions(+), 9053 deletions(-) diff --git a/components/__tests__/__snapshots__/index.test.js.snap b/components/__tests__/__snapshots__/index.test.js.snap index 07b595e24a..e2261c093e 100644 --- a/components/__tests__/__snapshots__/index.test.js.snap +++ b/components/__tests__/__snapshots__/index.test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`antd exports modules correctly 1`] = ` Array [ "Affix", diff --git a/components/affix/__tests__/__snapshots__/demo.test.js.snap b/components/affix/__tests__/__snapshots__/demo.test.js.snap index 53ebc4e375..9a694a8d88 100644 --- a/components/affix/__tests__/__snapshots__/demo.test.js.snap +++ b/components/affix/__tests__/__snapshots__/demo.test.js.snap @@ -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`] = `
+ class="" + >
`; -exports[`test renders ./components/affix/demo/on-change.md correctly 1`] = ` +exports[`renders ./components/affix/demo/on-change.md correctly 1`] = `
+ class="" + >
`; -exports[`test renders ./components/affix/demo/target.md correctly 1`] = ` +exports[`renders ./components/affix/demo/target.md correctly 1`] = `
+ class="scrollable-container" +>
+ class="background" + >
+ class="" + >