12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`should render correctly when creating a new webhook 1`] = `
- <ValidationModal
- confirmButtonText="create"
- header="webhooks.create"
- initialValues={
- {
- "name": "",
- "secret": "",
- "url": "",
- }
- }
- onClose={[MockFunction]}
- onSubmit={[MockFunction]}
- size="small"
- validate={[Function]}
- >
- <Component />
- </ValidationModal>
- `;
-
- exports[`should render correctly when updating a webhook with a secret 1`] = `
- <ValidationModal
- confirmButtonText="update_verb"
- header="webhooks.update"
- initialValues={
- {
- "name": "bar",
- "secret": "sonar",
- "url": "http://foo.bar",
- }
- }
- onClose={[MockFunction]}
- onSubmit={[MockFunction]}
- size="small"
- validate={[Function]}
- >
- <Component />
- </ValidationModal>
- `;
-
- exports[`should render correctly when updating a webhook without secret 1`] = `
- <ValidationModal
- confirmButtonText="update_verb"
- header="webhooks.update"
- initialValues={
- {
- "name": "foo",
- "secret": "",
- "url": "http://foo.bar",
- }
- }
- onClose={[MockFunction]}
- onSubmit={[MockFunction]}
- size="small"
- validate={[Function]}
- >
- <Component />
- </ValidationModal>
- `;
|