| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package stubs |
||
| 2 | |||
| 3 | // ContactsCreateResponse returns a stubbed response for creating a contact |
||
| 4 | func ContactsCreateResponse() []byte { |
||
| 5 | return []byte(` |
||
| 6 | { |
||
| 7 | "id": "string", |
||
| 8 | "email": "[email protected]", |
||
| 9 | "subscribed": true, |
||
| 10 | "projectId": "44654d15-35aa-4573-a767-616015403763", |
||
| 11 | "data": { |
||
| 12 | "firstName": "John", |
||
| 13 | "lastName": "Doe", |
||
| 14 | "plan": "premium" |
||
| 15 | }, |
||
| 16 | "createdAt": "2019-08-24T14:15:22Z", |
||
| 17 | "updatedAt": "2019-08-24T14:15:22Z", |
||
| 18 | "_meta": { |
||
| 19 | "isNew":false, |
||
| 20 | "isUpdate":false |
||
| 21 | } |
||
| 22 | } |
||
| 23 | `) |
||
| 24 | } |
||
| 25 | |||
| 26 | // ContactsListResponse returns a stubbed response for listing a contact |
||
| 27 | func ContactsListResponse() []byte { |
||
| 28 | return []byte(` |
||
| 29 | { |
||
| 51 |