fix session profile listing and cli sqlite warning (#971)

This commit is contained in:
ekko
2026-05-24 17:54:17 +08:00
committed by GitHub
parent f61a1d9454
commit a7f0a92fe6
6 changed files with 159 additions and 11 deletions
+2 -2
View File
@@ -132,7 +132,7 @@ describe('CLI port detection', () => {
try {
const { resetDefaultLogin } = await loadCli()
const created = resetDefaultLogin({ silent: true })
const created = await resetDefaultLogin({ silent: true })
expect(created.action).toBe('created')
const db = new DatabaseSync(dbPath)
@@ -144,7 +144,7 @@ describe('CLI port detection', () => {
db.close()
}
const updated = resetDefaultLogin({ silent: true })
const updated = await resetDefaultLogin({ silent: true })
expect(updated.action).toBe('updated')
const verifyDb = new DatabaseSync(dbPath)