test fixes

This commit is contained in:
Kristaps Fabians Geikins
2024-11-11 14:51:54 +02:00
parent ee16b083ba
commit d02ca824c3
5 changed files with 18 additions and 6 deletions
@@ -161,7 +161,7 @@ describe('Workspace repositories', () => {
})
afterEach(async () => {
truncateTables(['workspaces'])
await truncateTables(['workspaces'])
})
it('returns all workspace members', async () => {
@@ -209,7 +209,7 @@ describe('Workspace repositories', () => {
})
afterEach(async () => {
truncateTables(['workspaces'])
await truncateTables(['workspaces'])
})
it('limits search results to specified workspace', async () => {
@@ -117,7 +117,7 @@ describe('Workspace SSO', () => {
})
afterEach(async () => {
truncateTables(['user_sso_sessions'])
await truncateTables(['user_sso_sessions'])
})
describe('given a workspace with SSO configured', () => {
@@ -251,7 +251,7 @@ describe('Workspace SSO repositories', () => {
})
afterEach(async () => {
truncateTables(['user_sso_sessions'])
await truncateTables(['user_sso_sessions'])
})
it('returns an empty array if there are no sessions', async () => {