Function
createBlocks
(
blocks: {
id: string
type: string
content: string
metadata?: Record<string, unknown>
}[]
)
Source from the content-addressed store, hash-verified
| 7 | const DATAFRAME_SQL_INTEGRATION_ID = 'dataframe-sql-integration' |
| 8 | |
| 9 | function createBlocks( |
| 10 | blocks: { |
| 11 | id: string |
| 12 | type: string |
| 13 | content: string |
| 14 | metadata?: Record<string, unknown> |
| 15 | }[] |
| 16 | ): DeepnoteBlock[] { |
| 17 | return blocks.map(block => ({ |
| 18 | blockGroup: 'default', |
| 19 | sortingKey: '0', |
| 20 | ...block, |
| 21 | })) as DeepnoteBlock[] |
| 22 | } |
| 23 | |
| 24 | describe('DAG', () => { |
| 25 | afterEach(() => { |
Tested by
no test coverage detected