mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
fix(ql3): make completion fixture migration-ready
This commit is contained in:
@@ -43,6 +43,22 @@ test('creates one private production-shaped QingLong 2.x readiness fixture', (t)
|
||||
'Subscriptions',
|
||||
'sqlite_sequence',
|
||||
]);
|
||||
assert.deepEqual(
|
||||
database
|
||||
.prepare(
|
||||
'SELECT name, status, position, isPinned FROM Envs ORDER BY id',
|
||||
)
|
||||
.all()
|
||||
.map((row) => ({ ...row })),
|
||||
[
|
||||
{
|
||||
name: 'ALPHA_READINESS_VALUE',
|
||||
status: 0,
|
||||
position: 100,
|
||||
isPinned: 0,
|
||||
},
|
||||
],
|
||||
);
|
||||
} finally {
|
||||
database.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user