ScrapingService :: getServiceName test
This commit is contained in:
@ -28,5 +28,10 @@ describe('ScrapingService', () => {
|
||||
test('should create ScrapingService instance', () => {
|
||||
expect(scrapingService).toBeInstanceOf(ScrapingService);
|
||||
});
|
||||
|
||||
test('should return service name', () => {
|
||||
const serviceName = scrapingService.getServiceName();
|
||||
expect(serviceName).toBe('ScrapingService');
|
||||
});
|
||||
});
|
||||
});
|
@ -2,4 +2,8 @@ import { IFeedRepository } from '../repositories/FeedRepository';
|
||||
|
||||
export class ScrapingService {
|
||||
constructor(private feedRepository: IFeedRepository) {}
|
||||
|
||||
getServiceName(): string {
|
||||
return 'ScrapingService';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user