refactor(infra): directory structure (#4615)
This commit is contained in:
12
packages/frontend/native/__tests__/db.spec.mts
Normal file
12
packages/frontend/native/__tests__/db.spec.mts
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
});
|
||||
BIN
packages/frontend/native/__tests__/fixtures/test01.affine
Normal file
BIN
packages/frontend/native/__tests__/fixtures/test01.affine
Normal file
Binary file not shown.
Reference in New Issue
Block a user