Skip to content

Commit d4ec40a

Browse files
committed
Fix tests
1 parent 2645857 commit d4ec40a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/web/src/services/user/setupService.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,13 @@ describe('setupService', () => {
8585
expect(createdProviderApiKey?.authorId).toBe(user.id)
8686

8787
// Check onboarding creation
88-
// TODO(onboarding): change this once we have a new onboarding and we remove feature flag
8988
const createdOnboarding =
9089
await database.query.workspaceOnboarding.findFirst({
9190
where: utils.eq(workspaceOnboarding.workspaceId, workspace.id),
9291
})
93-
expect(createdOnboarding).not.toBeDefined()
92+
expect(createdOnboarding).toBeDefined()
93+
// TODO(onboarding): change this once we have a new onboarding and we remove feature flag
94+
expect(createdOnboarding?.completedAt).toBeDefined()
9495
})
9596

9697
it('publishes userCreated event', async () => {

0 commit comments

Comments
 (0)