Fix tests

This commit is contained in:
grossmj 2024-05-18 23:30:08 +07:00
parent a27a7ff4ee
commit 9447622e1f
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD

View File

@ -13,6 +13,8 @@ import { Link } from '../../../../../models/link';
import { DrawingService } from '../../../../../services/drawing.service';
import { LinkService } from '../../../../../services/link.service';
import { NodeService } from '../../../../../services/node.service';
import { ToasterService } from '../../../../../services/toaster.service';
import { MockedToasterService } from '../../../../../services/toaster.service.spec';
import { MockedDrawingService, MockedLinkService, MockedNodeService } from '../../../project-map.component.spec';
import { DeleteActionComponent } from './delete-action.component';
@ -22,6 +24,7 @@ describe('DeleteActionComponent', () => {
let mockedNodeService: MockedNodeService = new MockedNodeService();
let mockedDrawingService: MockedDrawingService = new MockedDrawingService();
let mockedLinkService: MockedLinkService = new MockedLinkService();
let mockedToasterService = new MockedToasterService();
beforeEach(async () => {
await TestBed.configureTestingModule({
@ -33,6 +36,7 @@ describe('DeleteActionComponent', () => {
{ provide: NodeService, useValue: mockedNodeService },
{ provide: DrawingService, useValue: mockedDrawingService },
{ provide: LinkService, useValue: mockedLinkService },
{ provide: ToasterService, useValue: mockedToasterService},
],
declarations: [DeleteActionComponent],
}).compileComponents();