15 lines
442 B
TypeScript
15 lines
442 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import {
|
|
persistBuiltInPlaybooks,
|
|
type BuiltInImportTransaction,
|
|
} from './built-in-importer'
|
|
|
|
describe('PostgreSQL built-in importer', () => {
|
|
it('rejects an incomplete catalog before issuing database statements', async () => {
|
|
await expect(
|
|
persistBuiltInPlaybooks({} as BuiltInImportTransaction, []),
|
|
).rejects.toMatchObject({ code: 'catalog_import_incomplete' })
|
|
})
|
|
})
|