-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from amagovpt/develop
Develop
- Loading branch information
Showing
217 changed files
with
16,326 additions
and
15,588 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
73 changes: 46 additions & 27 deletions
73
...essibility-statement-module/accessibility-statement/accessibility-statement.controller.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
29 changes: 17 additions & 12 deletions
29
src/accessibility-statement-module/accessibility-statement/accessibility-statement.module.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 |
---|---|---|
@@ -1,18 +1,23 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { AccessibilityStatementService } from './accessibility-statement.service'; | ||
import { TypeOrmModule } from '@nestjs/typeorm'; | ||
import { AccessibilityStatement } from './entities/accessibility-statement.entity'; | ||
import { AutomaticEvaluationModule } from '../automatic-evaluation/automatic-evaluation.module'; | ||
import { ManualEvaluationModule } from '../manual-evaluation/manual-evaluation.module'; | ||
import { UserEvaluationModule } from '../user-evaluation/user-evaluation.module'; | ||
import { ContactModule } from '../contact/contact.module'; | ||
import { AccessibilityStatementController } from './accessibility-statement.controller'; | ||
import { Module } from "@nestjs/common"; | ||
import { AccessibilityStatementService } from "./accessibility-statement.service"; | ||
import { TypeOrmModule } from "@nestjs/typeorm"; | ||
import { AccessibilityStatement } from "./entities/accessibility-statement.entity"; | ||
import { AutomaticEvaluationModule } from "../automatic-evaluation/automatic-evaluation.module"; | ||
import { ManualEvaluationModule } from "../manual-evaluation/manual-evaluation.module"; | ||
import { UserEvaluationModule } from "../user-evaluation/user-evaluation.module"; | ||
import { ContactModule } from "../contact/contact.module"; | ||
import { AccessibilityStatementController } from "./accessibility-statement.controller"; | ||
|
||
@Module({ | ||
controllers: [AccessibilityStatementController], | ||
imports: [ | ||
TypeOrmModule.forFeature([AccessibilityStatement]), AutomaticEvaluationModule, ManualEvaluationModule, UserEvaluationModule, ContactModule], | ||
TypeOrmModule.forFeature([AccessibilityStatement]), | ||
AutomaticEvaluationModule, | ||
ManualEvaluationModule, | ||
UserEvaluationModule, | ||
ContactModule, | ||
], | ||
providers: [AccessibilityStatementService], | ||
exports: [AccessibilityStatementService] | ||
exports: [AccessibilityStatementService], | ||
}) | ||
export class AccessibilityStatementModule { } | ||
export class AccessibilityStatementModule {} |
12 changes: 7 additions & 5 deletions
12
...sibility-statement-module/accessibility-statement/accessibility-statement.service.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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import { Test, TestingModule } from '@nestjs/testing'; | ||
import { AccessibilityStatementService } from './accessibility-statement.service'; | ||
import { Test, TestingModule } from "@nestjs/testing"; | ||
import { AccessibilityStatementService } from "./accessibility-statement.service"; | ||
|
||
describe('AccessibilityStatementService', () => { | ||
describe("AccessibilityStatementService", () => { | ||
let service: AccessibilityStatementService; | ||
|
||
beforeEach(async () => { | ||
const module: TestingModule = await Test.createTestingModule({ | ||
providers: [AccessibilityStatementService], | ||
}).compile(); | ||
|
||
service = module.get<AccessibilityStatementService>(AccessibilityStatementService); | ||
service = module.get<AccessibilityStatementService>( | ||
AccessibilityStatementService | ||
); | ||
}); | ||
|
||
it('should be defined', () => { | ||
it("should be defined", () => { | ||
expect(service).toBeDefined(); | ||
}); | ||
}); |
Oops, something went wrong.