(
payload: Record<string, any>,
id: string,
filters: Record<string, any>
)
| 54 | } |
| 55 | |
| 56 | const patchResponseFor = ( |
| 57 | payload: Record<string, any>, |
| 58 | id: string, |
| 59 | filters: Record<string, any> |
| 60 | ): Record<string, any> => { |
| 61 | return { |
| 62 | result: id === '42' ? ['result from api'] : null, |
| 63 | id: id === '42' ? 42 : 43, |
| 64 | short_id: id === '42' ? Insight42 : Insight43, |
| 65 | filters: filters || API_FILTERS, |
| 66 | name: id === '42' ? undefined : 'Foobar 43', |
| 67 | description: id === '42' ? undefined : 'Lorem ipsum.', |
| 68 | tags: id === '42' ? undefined : ['good'], |
| 69 | dashboards: payload['dashboards'], |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | function insightModelWith(properties: Record<string, any>): InsightModel { |
| 74 | return { |
no outgoing calls
no test coverage detected
searching dependent graphs…