summaryrefslogtreecommitdiffstats
path: root/frontend/__tests__/__snapshots__
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-05-07 16:54:27 -0400
committerWes Bos <wesbos@gmail.com>2018-05-07 16:54:27 -0400
commitc9a2b488c83dcaae0a00d2177d3bfe1f185c28bf (patch)
treeee3b0ad93874e434a212b43194286f366f13fbe1 /frontend/__tests__/__snapshots__
parentdbd39fcc3861facecdd4413c90ae85cebd5db67f (diff)
TEST ESTSE TS ETSETST
Diffstat (limited to 'frontend/__tests__/__snapshots__')
-rw-r--r--frontend/__tests__/__snapshots__/EditUser.test.js.snap84
-rw-r--r--frontend/__tests__/__snapshots__/ResetRequest.test.js.snap189
-rw-r--r--frontend/__tests__/__snapshots__/TakeMyMoney.test.js.snap8
3 files changed, 65 insertions, 216 deletions
diff --git a/frontend/__tests__/__snapshots__/EditUser.test.js.snap b/frontend/__tests__/__snapshots__/EditUser.test.js.snap
index 1de9aef..8a39758 100644
--- a/frontend/__tests__/__snapshots__/EditUser.test.js.snap
+++ b/frontend/__tests__/__snapshots__/EditUser.test.js.snap
@@ -1,55 +1,45 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`<EditUser/> asks you to log in when you arent logged in 1`] = `
-<p>
- You must be logged in
-</p>
-`;
-
exports[`<EditUser/> renders 1`] = `
-<Form
+<form
+ className="sc-bdVaJa LHejR"
onSubmit={[Function]}
>
- <form
- className="sc-bdVaJa LHejR"
- onSubmit={[Function]}
+ <DisplayError />
+ <fieldset
+ aria-busy={false}
+ disabled={false}
>
- <DisplayError />
- <fieldset
- aria-busy={false}
- disabled={false}
+ <label
+ htmlFor="name"
+ >
+ Name:
+ <input
+ defaultValue="Miss Coleman Berge"
+ name="name"
+ onChange={[Function]}
+ type="text"
+ />
+ </label>
+ <button
+ type="submit"
+ >
+ Update
+ </button>
+ <strong>
+ me:
+ </strong>
+ <pre>
+ "Miss Coleman Berge"
+ </pre>
+ <strong>
+ Change:
+ </strong>
+ <pre
+ data-test="change"
>
- <label
- htmlFor="name"
- >
- Name:
- <input
- defaultValue="Miss Tillman Mitchell"
- name="name"
- onChange={[Function]}
- type="text"
- />
- </label>
- <button
- type="submit"
- >
- Update
- </button>
- <strong>
- me:
- </strong>
- <pre>
- "Miss Tillman Mitchell"
- </pre>
- <strong>
- Change:
- </strong>
- <pre
- data-test="change"
- >
- {}
- </pre>
- </fieldset>
- </form>
-</Form>
+ {}
+ </pre>
+ </fieldset>
+</form>
`;
diff --git a/frontend/__tests__/__snapshots__/ResetRequest.test.js.snap b/frontend/__tests__/__snapshots__/ResetRequest.test.js.snap
index 66c4ff1..6afa68c 100644
--- a/frontend/__tests__/__snapshots__/ResetRequest.test.js.snap
+++ b/frontend/__tests__/__snapshots__/ResetRequest.test.js.snap
@@ -1,176 +1,35 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`<ResetRequest/> calls the mutation 1`] = `
-<ResetRequest>
- <Mutation
- mutation={
- Object {
- "definitions": Array [
- Object {
- "directives": Array [],
- "kind": "OperationDefinition",
- "name": Object {
- "kind": "Name",
- "value": "requestReset",
- },
- "operation": "mutation",
- "selectionSet": Object {
- "kind": "SelectionSet",
- "selections": Array [
- Object {
- "alias": undefined,
- "arguments": Array [
- Object {
- "kind": "Argument",
- "name": Object {
- "kind": "Name",
- "value": "email",
- },
- "value": Object {
- "kind": "Variable",
- "name": Object {
- "kind": "Name",
- "value": "email",
- },
- },
- },
- ],
- "directives": Array [],
- "kind": "Field",
- "name": Object {
- "kind": "Name",
- "value": "requestReset",
- },
- "selectionSet": Object {
- "kind": "SelectionSet",
- "selections": Array [
- Object {
- "alias": undefined,
- "arguments": Array [],
- "directives": Array [],
- "kind": "Field",
- "name": Object {
- "kind": "Name",
- "value": "id",
- },
- "selectionSet": undefined,
- },
- ],
- },
- },
- ],
- },
- "variableDefinitions": Array [
- Object {
- "defaultValue": undefined,
- "kind": "VariableDefinition",
- "type": Object {
- "kind": "NonNullType",
- "type": Object {
- "kind": "NamedType",
- "name": Object {
- "kind": "Name",
- "value": "String",
- },
- },
- },
- "variable": Object {
- "kind": "Variable",
- "name": Object {
- "kind": "Name",
- "value": "email",
- },
- },
- },
- ],
- },
- ],
- "kind": "Document",
- "loc": Object {
- "end": 97,
- "start": 0,
- },
- }
- }
- variables={
- Object {
- "email": "wesbos@gmail.com",
- }
- }
- >
- <Form
- data-test="ResetRequest"
- onSubmit={[Function]}
- >
- <form
- className="sc-bdVaJa LHejR"
- data-test="ResetRequest"
- onSubmit={[Function]}
- >
- <DisplayError />
- <fieldset
- aria-busy={true}
- disabled={true}
- >
- <label
- htmlFor="email"
- >
- Email
- <input
- name="email"
- onChange={[Function]}
- placeholder="email"
- type="text"
- value="wesbos@gmail.com"
- />
- </label>
- <button
- type="submit"
- >
- Request Reset!
- </button>
- </fieldset>
- </form>
- </Form>
- </Mutation>
-</ResetRequest>
-`;
-
exports[`<ResetRequest/> renders and matches snapshot 1`] = `
-<Form
+<form
+ className="sc-bdVaJa LHejR"
data-test="ResetRequest"
onSubmit={[Function]}
>
- <form
- className="sc-bdVaJa LHejR"
- data-test="ResetRequest"
- onSubmit={[Function]}
+ <DisplayError />
+ <fieldset
+ aria-busy={false}
+ disabled={false}
>
- <DisplayError />
- <fieldset
- aria-busy={false}
- disabled={false}
+ <label
+ htmlFor="email"
+ >
+ Email
+ <input
+ name="email"
+ onChange={[Function]}
+ placeholder="email"
+ type="text"
+ value=""
+ />
+ </label>
+ <button
+ type="submit"
>
- <label
- htmlFor="email"
- >
- Email
- <input
- name="email"
- onChange={[Function]}
- placeholder="email"
- type="text"
- value=""
- />
- </label>
- <button
- type="submit"
- >
- Request Reset!
- </button>
- </fieldset>
- </form>
-</Form>
+ Request Reset!
+ </button>
+ </fieldset>
+</form>
`;
exports[`<ResetRequest/> renders errors 1`] = `
diff --git a/frontend/__tests__/__snapshots__/TakeMyMoney.test.js.snap b/frontend/__tests__/__snapshots__/TakeMyMoney.test.js.snap
index cc83945..00863d3 100644
--- a/frontend/__tests__/__snapshots__/TakeMyMoney.test.js.snap
+++ b/frontend/__tests__/__snapshots__/TakeMyMoney.test.js.snap
@@ -3,12 +3,12 @@
exports[`<TakeMyMoney /> renders 1`] = `
<ReactStripeCheckout
ComponentClass="span"
- amount={281050000}
+ amount={15000}
className="StripeCheckout"
currency="USD"
- description="Order of 5621 Items From Sick Fits"
- email="Ella_Douglas@Lou.info"
- image="dog.jpg"
+ description="Order of 3 Items From Sick Fits"
+ email="Delmer.Smith@yahoo.com"
+ image="dog-small.jpg"
label="Pay With Card"
locale="auto"
name="Sick Fits Haul"