summaryrefslogtreecommitdiffstats
path: root/frontend/__tests__/__snapshots__
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-03-20 14:48:34 -0400
committerWes Bos <wesbos@gmail.com>2018-03-20 14:48:34 -0400
commit92f612a995c54f7423bd2b760fb1a324044693a6 (patch)
tree0350ceb82c0539bcafdded837c435ee68d6257ef /frontend/__tests__/__snapshots__
parent217cfed064989816fbffcb1e285134c8e03ef5c7 (diff)
Starting testing
Diffstat (limited to 'frontend/__tests__/__snapshots__')
-rw-r--r--frontend/__tests__/__snapshots__/Cart.test.js.snap44
1 files changed, 44 insertions, 0 deletions
diff --git a/frontend/__tests__/__snapshots__/Cart.test.js.snap b/frontend/__tests__/__snapshots__/Cart.test.js.snap
new file mode 100644
index 0000000..b2b6bc7
--- /dev/null
+++ b/frontend/__tests__/__snapshots__/Cart.test.js.snap
@@ -0,0 +1,44 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`<Cart/> renders 1`] = `
+<[object Object]
+ value={
+ Object {
+ "state": Object {
+ "isCartOpen": false,
+ },
+ "toggle": [Function],
+ }
+ }
+>
+ <Cart
+ currentUser={
+ Object {
+ "me": Object {
+ "cart": Array [
+ Object {
+ "item": Object {
+ "price": 5000,
+ },
+ "quantity": 10,
+ },
+ Object {
+ "item": Object {
+ "price": 5000,
+ },
+ "quantity": 10,
+ },
+ Object {
+ "item": Object {
+ "price": 5000,
+ },
+ "quantity": 10,
+ },
+ ],
+ },
+ "refetch": [Function],
+ }
+ }
+ />
+</[object Object]>
+`;