|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`should send a post request to the url when fired 1`] = ` |
| 4 | +[MockFunction] { |
| 5 | + "calls": Array [ |
| 6 | + Array [ |
| 7 | + "http://example.com/foo/bar", |
| 8 | + Object { |
| 9 | + "findings": Array [], |
| 10 | + "paylod": Object { |
| 11 | + "@context": "https://schema.org/extensions", |
| 12 | + "@type": "MessageCard", |
| 13 | + "potentialAction": Array [ |
| 14 | + Object { |
| 15 | + "@type": "OpenUri", |
| 16 | + "name": "Open Dashboard", |
| 17 | + "targets": Array [ |
| 18 | + Object { |
| 19 | + "os": "default", |
| 20 | + "uri": "https://your-dashboard.url/", |
| 21 | + }, |
| 22 | + ], |
| 23 | + }, |
| 24 | + Object { |
| 25 | + "@type": "OpenUri", |
| 26 | + "name": "Show Results in Dashboard", |
| 27 | + "targets": Array [ |
| 28 | + Object { |
| 29 | + "os": "default", |
| 30 | + "uri": "https://your-dashboard.url/", |
| 31 | + }, |
| 32 | + ], |
| 33 | + }, |
| 34 | + ], |
| 35 | + "sections": Array [ |
| 36 | + Object { |
| 37 | + "activityImage": "https://raw.githubusercontent.com/secureCodeBox/securecodebox.github.io/gh-source/static/Favicon.png", |
| 38 | + "activitySubtitle": "Finished at 2020-05-25T02:38:13Z", |
| 39 | + "activityTitle": "Scheduled scan: **'demo-scan-1601086432'**", |
| 40 | + "facts": Array [ |
| 41 | + Object { |
| 42 | + "name": "High:", |
| 43 | + "value": "10", |
| 44 | + }, |
| 45 | + Object { |
| 46 | + "name": "Medium:", |
| 47 | + "value": "5", |
| 48 | + }, |
| 49 | + Object { |
| 50 | + "name": "Low:", |
| 51 | + "value": "2", |
| 52 | + }, |
| 53 | + Object { |
| 54 | + "name": "Informational", |
| 55 | + "value": "1", |
| 56 | + }, |
| 57 | + ], |
| 58 | + "startGroup": true, |
| 59 | + "text": "__Findings Severity Overview:__", |
| 60 | + }, |
| 61 | + Object { |
| 62 | + "facts": Array [ |
| 63 | + Object { |
| 64 | + "name": "Open Ports:", |
| 65 | + "value": "3", |
| 66 | + }, |
| 67 | + Object { |
| 68 | + "name": "Hosts:", |
| 69 | + "value": "8", |
| 70 | + }, |
| 71 | + ], |
| 72 | + "text": "__Findings Category Overview:__", |
| 73 | + }, |
| 74 | + ], |
| 75 | + "summary": "Scan 09988cdf-1fc7-4f85-95ee-1b1d65dbc7cc", |
| 76 | + "themeColor": "0078D7", |
| 77 | + "title": "New security scan Nmap results are available!", |
| 78 | + }, |
| 79 | + }, |
| 80 | + ], |
| 81 | + ], |
| 82 | + "results": Array [ |
| 83 | + Object { |
| 84 | + "type": "return", |
| 85 | + "value": undefined, |
| 86 | + }, |
| 87 | + ], |
| 88 | +} |
| 89 | +`; |
0 commit comments