AFFiNE/packages/frontend/native/__tests__/db.spec.mts
2023-10-18 15:30:08 +00:00

13 lines
371 B
TypeScript

import test from 'ava';
import { fileURLToPath } from 'node:url';
import { SqliteConnection, ValidationResult } from '../index';
test('db validate', async t => {
const path = fileURLToPath(
new URL('./fixtures/test01.affine', import.meta.url)
);
const result = await SqliteConnection.validate(path);
t.is(result, ValidationResult.MissingVersionColumn);
});