diff options
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> +`; |
