feat(modules): setup modules shifts, timesheets, shift-codes and leave-requests
This commit is contained in:
parent
77da43e0ed
commit
5e35637e0b
|
|
@ -1,22 +0,0 @@
|
||||||
import { Test, TestingModule } from '@nestjs/testing';
|
|
||||||
import { AppController } from './app.controller';
|
|
||||||
import { AppService } from './app.service';
|
|
||||||
|
|
||||||
describe('AppController', () => {
|
|
||||||
let appController: AppController;
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
const app: TestingModule = await Test.createTestingModule({
|
|
||||||
controllers: [AppController],
|
|
||||||
providers: [AppService],
|
|
||||||
}).compile();
|
|
||||||
|
|
||||||
appController = app.get<AppController>(AppController);
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('root', () => {
|
|
||||||
it('should return "Hello World!"', () => {
|
|
||||||
expect(appController.getHello()).toBe('Hello World!');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
import { Test, TestingModule } from '@nestjs/testing';
|
|
||||||
import { EmployeesController } from './employees.controller';
|
|
||||||
|
|
||||||
describe('EmployeesController', () => {
|
|
||||||
let controller: EmployeesController;
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
const module: TestingModule = await Test.createTestingModule({
|
|
||||||
controllers: [EmployeesController],
|
|
||||||
}).compile();
|
|
||||||
|
|
||||||
controller = module.get<EmployeesController>(EmployeesController);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should be defined', () => {
|
|
||||||
expect(controller).toBeDefined();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
import { Test, TestingModule } from '@nestjs/testing';
|
|
||||||
import { EmployeesService } from './employees.service';
|
|
||||||
|
|
||||||
describe('EmployeesService', () => {
|
|
||||||
let service: EmployeesService;
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
const module: TestingModule = await Test.createTestingModule({
|
|
||||||
providers: [EmployeesService],
|
|
||||||
}).compile();
|
|
||||||
|
|
||||||
service = module.get<EmployeesService>(EmployeesService);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should be defined', () => {
|
|
||||||
expect(service).toBeDefined();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
0
src/modules/leave_requests/leave-requests.module.ts
Normal file
0
src/modules/leave_requests/leave-requests.module.ts
Normal file
0
src/modules/shift-codes/shift-codes.module.ts
Normal file
0
src/modules/shift-codes/shift-codes.module.ts
Normal file
0
src/modules/shifts/controllers/shifts.controller.ts
Normal file
0
src/modules/shifts/controllers/shifts.controller.ts
Normal file
0
src/modules/shifts/dtos/create-shifts.dto.ts
Normal file
0
src/modules/shifts/dtos/create-shifts.dto.ts
Normal file
0
src/modules/shifts/dtos/update-shifts.dto.ts
Normal file
0
src/modules/shifts/dtos/update-shifts.dto.ts
Normal file
0
src/modules/shifts/services/shifts.service.ts
Normal file
0
src/modules/shifts/services/shifts.service.ts
Normal file
0
src/modules/shifts/shifts.module.ts
Normal file
0
src/modules/shifts/shifts.module.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
import { Controller } from '@nestjs/common';
|
||||||
|
|
||||||
|
@Controller('timesheets')
|
||||||
|
export class TimesheetsController {}
|
||||||
1
src/modules/timesheets/dtos/create-timesheet.dto.ts
Normal file
1
src/modules/timesheets/dtos/create-timesheet.dto.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export class CreateTimesheetDto {}
|
||||||
1
src/modules/timesheets/dtos/update-timesheet.dto.ts
Normal file
1
src/modules/timesheets/dtos/update-timesheet.dto.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export class UpdateTimesheetDto {}
|
||||||
4
src/modules/timesheets/services/timesheets.service.ts
Normal file
4
src/modules/timesheets/services/timesheets.service.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
import { Injectable } from '@nestjs/common';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class TimesheetsService {}
|
||||||
9
src/modules/timesheets/timesheets.module.ts
Normal file
9
src/modules/timesheets/timesheets.module.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { Module } from '@nestjs/common';
|
||||||
|
import { TimesheetsController } from './controllers/timesheets.controller';
|
||||||
|
import { TimesheetsService } from './services/timesheets.service';
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
controllers: [TimesheetsController],
|
||||||
|
providers: [TimesheetsService]
|
||||||
|
})
|
||||||
|
export class TimesheetsModule {}
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
import { Test, TestingModule } from '@nestjs/testing';
|
|
||||||
import { UsersService } from './users.service';
|
|
||||||
|
|
||||||
describe('UsersService', () => {
|
|
||||||
let service: UsersService;
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
const module: TestingModule = await Test.createTestingModule({
|
|
||||||
providers: [UsersService],
|
|
||||||
}).compile();
|
|
||||||
|
|
||||||
service = module.get<UsersService>(UsersService);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should be defined', () => {
|
|
||||||
expect(service).toBeDefined();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
Loading…
Reference in New Issue
Block a user