about summary refs log tree commit diff
path: root/tests/unit
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-21 18:25:12 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-21 18:25:12 +0200
commit424eaa9e8098cef762b1a2a7565d37944bb25306 (patch)
tree2ded69401a7c0acb33b648b464d37d3a5dcdb6a5 /tests/unit
parentd1c6e2eaed90891fc8e187f147af224b352662c8 (diff)
downloadpuszcza-424eaa9e8098cef762b1a2a7565d37944bb25306.tar.gz
puszcza-424eaa9e8098cef762b1a2a7565d37944bb25306.zip
Add storybook
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/__snapshots__/storybook.test.js.snap27
-rw-r--r--tests/unit/storybook.test.js5
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/unit/__snapshots__/storybook.test.js.snap b/tests/unit/__snapshots__/storybook.test.js.snap
new file mode 100644
index 0000000..606044b
--- /dev/null
+++ b/tests/unit/__snapshots__/storybook.test.js.snap
@@ -0,0 +1,27 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Storyshots ChroniclePost default 1`] = `
+<div
+  class="post"
+>
+  <a
+    href="/kronika/2019/20/11/test"
+  >
+    <div
+      class="post-container"
+    >
+      <h4
+        class="post-title"
+      >
+        Test ChroniclePost
+      </h4>
+       
+      <p
+        class="post-description"
+      >
+        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pulvinar non ex non sagittis. Quisque in enim tellus. Aliquam consequat mi id sapien congue, sit amet vulputate tortor viverra. Donec....
+      </p>
+    </div>
+  </a>
+</div>
+`;
diff --git a/tests/unit/storybook.test.js b/tests/unit/storybook.test.js
new file mode 100644
index 0000000..ed81be4
--- /dev/null
+++ b/tests/unit/storybook.test.js
@@ -0,0 +1,5 @@
+import registerRequireContextHook from 'babel-plugin-require-context-hook/register'
+import initStoryshots from '@storybook/addon-storyshots'
+
+registerRequireContextHook()
+initStoryshots()