diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-03-14 12:19:54 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-03-14 12:19:54 -0400 |
| commit | 331da87bd53bc1fb79063d142764c75df9f32170 (patch) | |
| tree | d80aac98154a811fdf57b10e90ac0350fe14568e /frontend/__tests__/__snapshots__/Item.test.js.snap | |
| parent | 46a0ba30ef54a7e36206481a4f5b2bf1f9702fca (diff) | |
tests
Diffstat (limited to 'frontend/__tests__/__snapshots__/Item.test.js.snap')
| -rw-r--r-- | frontend/__tests__/__snapshots__/Item.test.js.snap | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/frontend/__tests__/__snapshots__/Item.test.js.snap b/frontend/__tests__/__snapshots__/Item.test.js.snap new file mode 100644 index 0000000..f088121 --- /dev/null +++ b/frontend/__tests__/__snapshots__/Item.test.js.snap @@ -0,0 +1,60 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`<Item/> Renders an item 1`] = ` +<styled.div + key="ABC123" +> + <img + alt="A Cool Item" + src="dog.jpg" + /> + <styled.h3> + <Link + href={ + Object { + "pathname": "/item", + "query": Object { + "id": "ABC123", + }, + } + } + > + <a> + A Cool Item + </a> + </Link> + </styled.h3> + <styled.span> + $50 + </styled.span> + <p> + This item is really cool! + </p> + <div + className="buttonList" + > + <Link + href={ + Object { + "pathname": "/admin/update", + "query": Object { + "id": "ABC123", + }, + } + } + > + <a> + Edit ✏️ + </a> + </Link> + <Apollo(Apollo(AddToCart)) + id="ABC123" + /> + <button + onClick={[Function]} + > + × Delete item + </button> + </div> +</styled.div> +`; |
