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__/CreateItem.test.js.snap | |
| parent | 46a0ba30ef54a7e36206481a4f5b2bf1f9702fca (diff) | |
tests
Diffstat (limited to 'frontend/__tests__/__snapshots__/CreateItem.test.js.snap')
| -rw-r--r-- | frontend/__tests__/__snapshots__/CreateItem.test.js.snap | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/frontend/__tests__/__snapshots__/CreateItem.test.js.snap b/frontend/__tests__/__snapshots__/CreateItem.test.js.snap new file mode 100644 index 0000000..66b7965 --- /dev/null +++ b/frontend/__tests__/__snapshots__/CreateItem.test.js.snap @@ -0,0 +1,58 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`<Createitem/> renders the form out 1`] = ` +<div> + <Form + onSubmit={[Function]} + > + <DisplayError + error={ + Object { + "message": null, + } + } + onButtonClick={[Function]} + /> + <p> + Image + <input + accept=".png, .jpg, .jpeg" + onChange={[Function]} + type="file" + /> + </p> + <p> + Title + <input + id="title" + name="title" + onChange={[Function]} + placeholder="Title" + type="text" + /> + </p> + <label> + Price + <input + id="price" + min="0" + name="price" + onChange={[Function]} + type="number" + /> + </label> + <textarea + id="description" + name="description" + onChange={[Function]} + placeholder="The desc for this item" + /> + <button + disabled={false} + type="submit" + > + Submit + </button> + </Form> +</div> +`; |
