Commit 112d591c authored by Hidde-Jan Jongsma's avatar Hidde-Jan Jongsma

Add issue module

parent 6806919d
......@@ -3,22 +3,17 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { WalletModule } from './wallet/wallet.module';
import { OrganizationsModule } from './organizations/organizations.module';
import { RequestsModule } from './requests/requests.module';
import { IssueModule } from './issue/issue.module';
@Module({
imports: [
TypeOrmModule.forRoot({
type: 'sqlite',
database: './dev.sqlite3',
database: '/data/dev.sqlite3',
synchronize: true,
autoLoadEntities: true,
}),
WalletModule,
OrganizationsModule,
RequestsModule,
IssueModule,
],
controllers: [AppController],
providers: [AppService],
......
import { Test, TestingModule } from '@nestjs/testing';
import { IssueController } from './issue.controller';
describe('Issue Controller', () => {
let controller: IssueController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [IssueController],
}).compile();
controller = module.get<IssueController>(IssueController);
});
it('should be defined', () => {
expect(controller).toBeDefined();
});
});
import { Controller } from '@nestjs/common';
@Controller('issue')
export class IssueController {}
import { Module } from '@nestjs/common';
import { IssueController } from './issue.controller';
@Module({
controllers: [IssueController]
})
export class IssueModule {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment