test: assert company skills are removed during company cleanup

This commit is contained in:
lorenzozanee 2026-09-12 00:56:30 +08:00
parent 52811c6ce6
commit dcf29d0c73
No known key found for this signature in database
GPG Key ID: EEF1D734C53EEB09
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ describeEmbeddedPostgres("cleanup removal services", () => {
expect(removed?.id).toBe(companyId);
await expect(db.select().from(companies).where(eq(companies.id, companyId))).resolves.toHaveLength(0);
await expect(db.select().from(issues).where(eq(issues.id, issueId))).resolves.toHaveLength(0);
await expect(db.select().from(companySkills).where(eq(companySkills.companyId, companyId))).resolves.toHaveLength(0);
await expect(db.select().from(documents).where(eq(documents.id, documentId))).resolves.toHaveLength(0);
await expect(db.select().from(documentRevisions).where(eq(documentRevisions.id, revisionId))).resolves.toHaveLength(0);
await expect(db.select().from(issueReadStates).where(eq(issueReadStates.companyId, companyId))).resolves.toHaveLength(0);