Skip to content

Commit

Permalink
chore: nx format:write update dirty files
Browse files Browse the repository at this point in the history
  • Loading branch information
andes-it committed Oct 25, 2024
1 parent 37b7104 commit edea061
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { EndorsementsScope, AdminPortalScope } from '@island.is/auth/scopes'
import { AppModule } from '../../app.module'
import { SequelizeConfigService } from '../../sequelizeConfig.service'


import { Injectable } from '@nestjs/common'
import { getModelToken } from '@nestjs/sequelize'
import { EndorsementList } from './endorsementList.model'
Expand Down Expand Up @@ -50,7 +49,10 @@ export class FixtureFactory {
})
}

async createEndorsementLists(count: number, input: Partial<EndorsementList> = {}) {
async createEndorsementLists(
count: number,
input: Partial<EndorsementList> = {},
) {
const lists = []
for (let i = 0; i < count; i++) {
lists.push(await this.createEndorsementList(input))
Expand All @@ -70,8 +72,7 @@ describe('EndorsementListController', () => {
app = await setupApp({
AppModule,
SequelizeConfigService,
dbType: 'postgres', // Specify postgres as the db type for tests

dbType: 'postgres', // Specify postgres as the db type for tests
})

fixtureFactory = new FixtureFactory(app)
Expand All @@ -92,8 +93,7 @@ describe('EndorsementListController', () => {
const app = await setupAppWithoutAuth({
AppModule,
SequelizeConfigService,
dbType: 'postgres', // Specify postgres as the db type for tests

dbType: 'postgres', // Specify postgres as the db type for tests
})
const server = request(app.getHttpServer())

Expand All @@ -110,7 +110,7 @@ describe('EndorsementListController', () => {
const app = await setupApp({
AppModule,
SequelizeConfigService,
dbType: 'postgres', // Specify postgres as the db type for tests
dbType: 'postgres', // Specify postgres as the db type for tests

user: createCurrentUser({}), // No scopes
})
Expand All @@ -123,5 +123,4 @@ describe('EndorsementListController', () => {
await app.cleanUp()
})
})

})

0 comments on commit edea061

Please sign in to comment.