Skip to content
Snippets Groups Projects

MY-300 Editing of My Profile info

Open Ghost User requested to merge feat/300-edit-profile-info into main
2 files
+ 4
2
Compare changes
  • Side-by-side
  • Inline
Files
2
import { NestFastifyApplication } from '@nestjs/platform-fastify'
import { getRepositoryToken } from '@nestjs/typeorm'
import { AssertHasAccountRightsGuard } from 'modules/accounts/assert-has-account-rights.guard'
import { Account } from 'modules/accounts/entities/account.entity'
import { Email } from 'modules/accounts/entities/email.entity'
import { HostInstitutionUtils } from 'modules/host-institutions/tests/host-institution-utils'
@@ -26,7 +27,7 @@ describe('Users Controller (e2e)', () => {
let repoUtils: RepoUtils<User>
beforeAll(async () => {
app = await factory.initialise({ overrideGuards: [{ guard: AssertHasUserRightsGuard, class: MockAllowAllGuard }] })
app = await factory.initialise({ overrideGuards: [{ guard: AssertHasUserRightsGuard, class: MockAllowAllGuard }, { guard: AssertHasAccountRightsGuard, class: MockAllowAllGuard }] })
repository = factory.getFixture(getRepositoryToken(User))
accountRepository = factory.getFixture(getRepositoryToken(Account))
Loading