fix(ql3): make completion fixture migration-ready

This commit is contained in:
whyour
2026-09-02 06:46:36 +08:00
parent 3df73261ab
commit 53672c468b
2 changed files with 18 additions and 2 deletions
@@ -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();
}