mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 04:43:20 +03:00
13 lines
371 B
TypeScript
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);
|
|
});
|