Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

CreateWebhookForm-test.tsx.snap 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly when creating a new webhook 1`] = `
  3. <ValidationModal
  4. confirmButtonText="create"
  5. header="webhooks.create"
  6. initialValues={
  7. {
  8. "name": "",
  9. "secret": "",
  10. "url": "",
  11. }
  12. }
  13. onClose={[MockFunction]}
  14. onSubmit={[MockFunction]}
  15. size="small"
  16. validate={[Function]}
  17. >
  18. <Component />
  19. </ValidationModal>
  20. `;
  21. exports[`should render correctly when updating a webhook with a secret 1`] = `
  22. <ValidationModal
  23. confirmButtonText="update_verb"
  24. header="webhooks.update"
  25. initialValues={
  26. {
  27. "name": "bar",
  28. "secret": "sonar",
  29. "url": "http://foo.bar",
  30. }
  31. }
  32. onClose={[MockFunction]}
  33. onSubmit={[MockFunction]}
  34. size="small"
  35. validate={[Function]}
  36. >
  37. <Component />
  38. </ValidationModal>
  39. `;
  40. exports[`should render correctly when updating a webhook without secret 1`] = `
  41. <ValidationModal
  42. confirmButtonText="update_verb"
  43. header="webhooks.update"
  44. initialValues={
  45. {
  46. "name": "foo",
  47. "secret": "",
  48. "url": "http://foo.bar",
  49. }
  50. }
  51. onClose={[MockFunction]}
  52. onSubmit={[MockFunction]}
  53. size="small"
  54. validate={[Function]}
  55. >
  56. <Component />
  57. </ValidationModal>
  58. `;