|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`should match snapshot when providing all fields: errors 1`] = `Array []`; |
| 4 | + |
| 5 | +exports[`should match snapshot when providing all fields: output 1`] = ` |
| 6 | +MilestoneEntity { |
| 7 | + "closedAt": "2022-08-30T09:55:46Z", |
| 8 | + "closedIssuesCount": 2, |
| 9 | + "createdAt": "2022-08-18T09:55:46Z", |
| 10 | + "description": "Adding an Arabic version of dzcode.io", |
| 11 | + "dueAt": "2022-08-30T09:55:46Z", |
| 12 | + "id": "8320713", |
| 13 | + "openIssuesCount": 4, |
| 14 | + "status": "open", |
| 15 | + "title": "Localization (web)", |
| 16 | + "url": "https://github.com/dzcode-io/dzcode.io/milestone/9", |
| 17 | +} |
| 18 | +`; |
| 19 | + |
| 20 | +exports[`should match snapshot when providing required fields only: errors 1`] = `Array []`; |
| 21 | + |
| 22 | +exports[`should match snapshot when providing required fields only: output 1`] = ` |
| 23 | +MilestoneEntity { |
| 24 | + "closedIssuesCount": 2, |
| 25 | + "createdAt": "2022-08-18T09:55:46Z", |
| 26 | + "description": "Adding an Arabic version of dzcode.io", |
| 27 | + "id": "8320713", |
| 28 | + "openIssuesCount": 4, |
| 29 | + "status": "open", |
| 30 | + "title": "Localization (web)", |
| 31 | + "url": "https://github.com/dzcode-io/dzcode.io/milestone/9", |
| 32 | +} |
| 33 | +`; |
| 34 | + |
| 35 | +exports[`should show an error that matches snapshot when passing empty object: errors 1`] = ` |
| 36 | +Array [ |
| 37 | + ValidationError { |
| 38 | + "children": Array [], |
| 39 | + "constraints": Object { |
| 40 | + "isString": "id must be a string", |
| 41 | + }, |
| 42 | + "property": "id", |
| 43 | + "target": MilestoneEntity {}, |
| 44 | + "value": undefined, |
| 45 | + }, |
| 46 | + ValidationError { |
| 47 | + "children": Array [], |
| 48 | + "constraints": Object { |
| 49 | + "isString": "title must be a string", |
| 50 | + }, |
| 51 | + "property": "title", |
| 52 | + "target": MilestoneEntity {}, |
| 53 | + "value": undefined, |
| 54 | + }, |
| 55 | + ValidationError { |
| 56 | + "children": Array [], |
| 57 | + "constraints": Object { |
| 58 | + "isString": "description must be a string", |
| 59 | + }, |
| 60 | + "property": "description", |
| 61 | + "target": MilestoneEntity {}, |
| 62 | + "value": undefined, |
| 63 | + }, |
| 64 | + ValidationError { |
| 65 | + "children": Array [], |
| 66 | + "constraints": Object { |
| 67 | + "isUrl": "url must be an URL address", |
| 68 | + }, |
| 69 | + "property": "url", |
| 70 | + "target": MilestoneEntity {}, |
| 71 | + "value": undefined, |
| 72 | + }, |
| 73 | + ValidationError { |
| 74 | + "children": Array [], |
| 75 | + "constraints": Object { |
| 76 | + "isNumber": "openIssuesCount must be a number conforming to the specified constraints", |
| 77 | + }, |
| 78 | + "property": "openIssuesCount", |
| 79 | + "target": MilestoneEntity {}, |
| 80 | + "value": undefined, |
| 81 | + }, |
| 82 | + ValidationError { |
| 83 | + "children": Array [], |
| 84 | + "constraints": Object { |
| 85 | + "isNumber": "closedIssuesCount must be a number conforming to the specified constraints", |
| 86 | + }, |
| 87 | + "property": "closedIssuesCount", |
| 88 | + "target": MilestoneEntity {}, |
| 89 | + "value": undefined, |
| 90 | + }, |
| 91 | + ValidationError { |
| 92 | + "children": Array [], |
| 93 | + "constraints": Object { |
| 94 | + "isString": "status must be a string", |
| 95 | + }, |
| 96 | + "property": "status", |
| 97 | + "target": MilestoneEntity {}, |
| 98 | + "value": undefined, |
| 99 | + }, |
| 100 | + ValidationError { |
| 101 | + "children": Array [], |
| 102 | + "constraints": Object { |
| 103 | + "isDateString": "createdAt must be a valid ISO 8601 date string", |
| 104 | + }, |
| 105 | + "property": "createdAt", |
| 106 | + "target": MilestoneEntity {}, |
| 107 | + "value": undefined, |
| 108 | + }, |
| 109 | +] |
| 110 | +`; |
| 111 | + |
| 112 | +exports[`should show an error that matches snapshot when passing empty object: output 1`] = `MilestoneEntity {}`; |
0 commit comments