(data: TestData, name: string)
| 109 | |
| 110 | it('should be able to provide a general data accessor', () => { |
| 111 | const defaultDataAccessor = (data: TestData, name: string) => { |
| 112 | switch (name) { |
| 113 | case 'propertyA': |
| 114 | return `A: ${data.propertyA}`; |
| 115 | case 'propertyB': |
| 116 | return `B: ${data.propertyB}`; |
| 117 | case 'propertyC': |
| 118 | return `C: ${data.propertyC}`; |
| 119 | default: |
| 120 | return ''; |
| 121 | } |
| 122 | }; |
| 123 | createTestComponent({defaultDataAccessor}); |
| 124 | |
| 125 | expectTableToMatchContent(tableElement, [ |
nothing calls this directly
no outgoing calls
no test coverage detected