Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fabis94 committed Nov 15, 2024
1 parent 91dc8d1 commit 020416d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
SetWorkspaceDefaultRegionDocument
} from '@/test/graphql/generated/graphql'
import { testApolloServer, TestApolloServer } from '@/test/graphqlHelper'
import { beforeEachContext, getRegionKeys } from '@/test/hooks'
import { beforeEachContext } from '@/test/hooks'
import { MultiRegionDbSelectorMock } from '@/test/mocks/global'
import { truncateRegionsSafely } from '@/test/speckle-helpers/regions'
import { Roles } from '@speckle/shared'
Expand Down Expand Up @@ -95,9 +95,10 @@ describe('Workspace regions GQL', () => {
})

expect(res).to.not.haveGraphQLErrors()
expect(
res.data?.workspace.availableRegions.map((r) => r.key)
).to.deep.equalInAnyOrder([region1Key, region2Key, ...getRegionKeys()])

const regionKeys = res.data?.workspace.availableRegions.map((r) => r.key) || {}
expect(regionKeys).to.include(region1Key)
expect(regionKeys).to.include(region2Key)
})
})

Expand Down

0 comments on commit 020416d

Please sign in to comment.