mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 00:04:53 +00:00
added a dedicated error handler service
This commit is contained in:
18
src/error-message/error-message.service.spec.ts
Normal file
18
src/error-message/error-message.service.spec.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { ErrorMessageService } from './error-message.service';
|
||||
|
||||
describe('ErrorMessageService', () => {
|
||||
let service: ErrorMessageService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [ErrorMessageService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<ErrorMessageService>(ErrorMessageService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user