AFFiNE/packages/frontend/native/__tests__/db.spec.mts

13 lines
371 B
TypeScript
Raw Normal View History

import test from 'ava';
2023-08-28 23:38:40 +03:00
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);
2023-08-28 23:38:40 +03:00
});