(rows: number)
| 191 | ]); |
| 192 | |
| 193 | export const generateMixedMarkdownMockData = (rows: number) => |
| 194 | unpackIntoColumnsAndData([ |
| 195 | { |
| 196 | id: 'not-markdown-column', |
| 197 | name: ['Not Markdown'], |
| 198 | editable: true, |
| 199 | data: gendata(_ => 'this is not a markdown cell', rows) |
| 200 | }, |
| 201 | { |
| 202 | id: 'markdown-column', |
| 203 | name: ['Markdown'], |
| 204 | type: ColumnType.Text, |
| 205 | presentation: 'markdown', |
| 206 | data: gendata( |
| 207 | i => |
| 208 | [ |
| 209 | '```javascript', |
| 210 | ...(i % 2 === 0 |
| 211 | ? ['console.warn("this is a markdown cell")'] |
| 212 | : [ |
| 213 | 'console.log("logging things")', |
| 214 | 'console.warn("this is a markdown cell")' |
| 215 | ]), |
| 216 | '```' |
| 217 | ].join('\n'), |
| 218 | rows |
| 219 | ) |
| 220 | }, |
| 221 | { |
| 222 | id: 'also-not-markdown-column', |
| 223 | name: ['Also Not Markdown'], |
| 224 | editable: false, |
| 225 | data: gendata(i => i, rows) |
| 226 | }, |
| 227 | { |
| 228 | id: 'also-also-not-markdown-column', |
| 229 | name: ['Also Also Not Markdown'], |
| 230 | editable: true, |
| 231 | data: gendata(_ => 'this is also also not a markdown cell', rows) |
| 232 | } |
| 233 | ]); |
| 234 | |
| 235 | export const generateSpaceMockData = (rows: number) => |
| 236 | unpackIntoColumnsAndData([ |
nothing calls this directly
no test coverage detected
searching dependent graphs…