From 3107c83c047cd6e5e80ad774d1ea2749b48fdc4d Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Tue, 1 Dec 2020 10:18:25 +0800 Subject: [PATCH] test(Icon): add demo snapshot --- src/icon/demo/index.vue | 2 +- src/icon/test/__snapshots__/demo.spec.js.snap | 147 ++++++++++++++++++ src/icon/test/demo.spec.js | 4 + 3 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 src/icon/test/__snapshots__/demo.spec.js.snap create mode 100644 src/icon/test/demo.spec.js diff --git a/src/icon/demo/index.vue b/src/icon/demo/index.vue index 5d0002f3a..4b5f536c7 100644 --- a/src/icon/demo/index.vue +++ b/src/icon/demo/index.vue @@ -29,7 +29,7 @@ - + diff --git a/src/icon/test/__snapshots__/demo.spec.js.snap b/src/icon/test/__snapshots__/demo.spec.js.snap new file mode 100644 index 000000000..86235f9ff --- /dev/null +++ b/src/icon/test/__snapshots__/demo.spec.js.snap @@ -0,0 +1,147 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should render demo and match snapshot 1`] = ` +
+
+
+
+
+ + + + +
+
+
+
+
+
+
+
+
+
+
+ + +
+
+ + + +
+
+
+
+
+
+ +
+
+
+
+
+ +
+ 9 +
+
+
+
+ +
+ 99+ +
+
+
+
+
+
+
+
+ + +
+
+ + +
+
+
+
+
+
+ + +
+
+ + +
+
+
+
+ + + +
+
+`; diff --git a/src/icon/test/demo.spec.js b/src/icon/test/demo.spec.js new file mode 100644 index 000000000..5c70922b5 --- /dev/null +++ b/src/icon/test/demo.spec.js @@ -0,0 +1,4 @@ +import Demo from '../demo'; +import { snapshotDemo } from '../../../test/demo'; + +snapshotDemo(Demo);