-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 1047-implement-admin-announcement-module
- Loading branch information
Showing
87 changed files
with
3,101 additions
and
2,270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
backend/apps/admin/src/contest/model/contest-with-participants.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Field, Int, ObjectType } from '@nestjs/graphql' | ||
import { Contest } from '@admin/@generated' | ||
|
||
@ObjectType({ description: 'contestWithParticipants' }) | ||
export class ContestWithParticipants extends Contest { | ||
@Field(() => Int) | ||
participants: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
backend/apps/client/src/announcement/announcement.controller.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Test, type TestingModule } from '@nestjs/testing' | ||
import { expect } from 'chai' | ||
import { RolesService } from '@libs/auth' | ||
import { AnnouncementController } from './announcement.controller' | ||
import { AnnouncementService } from './announcement.service' | ||
|
||
describe('AnnouncementController', () => { | ||
let controller: AnnouncementController | ||
|
||
beforeEach(async () => { | ||
const module: TestingModule = await Test.createTestingModule({ | ||
controllers: [AnnouncementController], | ||
providers: [ | ||
{ provide: AnnouncementService, useValue: {} }, | ||
{ provide: RolesService, useValue: {} } | ||
] | ||
}).compile() | ||
|
||
controller = module.get<AnnouncementController>(AnnouncementController) | ||
}) | ||
|
||
it('should be defined', () => { | ||
expect(controller).to.be.ok | ||
}) | ||
}) |
Oops, something went wrong.