diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-08 13:00:51 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-08 13:00:51 -0400 |
| commit | ad3671675719eb11a81245bffbe0fb18880b479b (patch) | |
| tree | 561db1323073a22969bef7c5aa4db4a7fe2ad0ed /frontend/__tests__/__snapshots__ | |
| parent | c9a2b488c83dcaae0a00d2177d3bfe1f185c28bf (diff) | |
omg
Diffstat (limited to 'frontend/__tests__/__snapshots__')
3 files changed, 17 insertions, 39 deletions
diff --git a/frontend/__tests__/__snapshots__/Cart.test.js.snap b/frontend/__tests__/__snapshots__/Cart.test.js.snap index 426bef2..28011dc 100644 --- a/frontend/__tests__/__snapshots__/Cart.test.js.snap +++ b/frontend/__tests__/__snapshots__/Cart.test.js.snap @@ -7,7 +7,7 @@ exports[`<Cart/> renders 1`] = ` title="close" > <button - className="sc-EHOje jytiuo" + className="sc-bZQynM julgib" onClick={[Function]} title="close" > @@ -16,17 +16,16 @@ exports[`<Cart/> renders 1`] = ` </styled.button> <styled.h3> <h3 - className="sc-ifAKCX imryuh" + className="sc-EHOje ixXoOG" > - Miss Tillman Mitchell + Miss Coleman Berge 's Cart. </h3> </styled.h3> <p> You have - 2 + 1 item - s in your cart. </p> </header> diff --git a/frontend/__tests__/__snapshots__/Pagination.test.js.snap b/frontend/__tests__/__snapshots__/Pagination.test.js.snap index 34fc655..2ecd98a 100644 --- a/frontend/__tests__/__snapshots__/Pagination.test.js.snap +++ b/frontend/__tests__/__snapshots__/Pagination.test.js.snap @@ -1,7 +1,10 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`<Pagination/> renders pagination for 18 items 1`] = ` -<styled.div> +exports[`<Pagination/> displays loading message 1`] = ` +<div + className="sc-bdVaJa ijYKGd" + data-test="pagination" +> <Link href={ Object { @@ -11,11 +14,12 @@ exports[`<Pagination/> renders pagination for 18 items 1`] = ` }, } } - prefetch={true} > <a aria-disabled={true} className="prev" + href="items?page=0" + onClick={[Function]} > ←Prev </a> @@ -30,12 +34,12 @@ exports[`<Pagination/> renders pagination for 18 items 1`] = ` <strong className="totalPages" > - 2 + 1 </strong> </p> <p> <strong> - 18 + 1 </strong> Items Total </p> @@ -48,14 +52,15 @@ exports[`<Pagination/> renders pagination for 18 items 1`] = ` }, } } - prefetch={true} > <a - aria-disabled={false} + aria-disabled={true} className="next" + href="items?page=2" + onClick={[Function]} > Next → </a> </Link> -</styled.div> +</div> `; diff --git a/frontend/__tests__/__snapshots__/ResetRequest.test.js.snap b/frontend/__tests__/__snapshots__/ResetRequest.test.js.snap index 6afa68c..f93486b 100644 --- a/frontend/__tests__/__snapshots__/ResetRequest.test.js.snap +++ b/frontend/__tests__/__snapshots__/ResetRequest.test.js.snap @@ -31,29 +31,3 @@ exports[`<ResetRequest/> renders and matches snapshot 1`] = ` </fieldset> </form> `; - -exports[`<ResetRequest/> renders errors 1`] = ` -<DisplayError - error={ - Object { - "message": "Shit!", - } - } -> - <styled.div> - <div - className="sc-bwzfXH flKeYn" - > - <p> - <strong> - Shoot! - </strong> - Shit! - <button> - Try Again - </button> - </p> - </div> - </styled.div> -</DisplayError> -`; |
