From fe769c0f98953f9cecff1c78603398249656943f Mon Sep 17 00:00:00 2001 From: Arcadio Quintero Date: Tue, 1 Oct 2024 21:15:31 -0400 Subject: [PATCH] feat(edit-content) clean test --- .../edit-content/store/edit-content.store.spec.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/core-web/libs/edit-content/src/lib/feature/edit-content/store/edit-content.store.spec.ts b/core-web/libs/edit-content/src/lib/feature/edit-content/store/edit-content.store.spec.ts index 7cc87fb12941..84e8144bd437 100644 --- a/core-web/libs/edit-content/src/lib/feature/edit-content/store/edit-content.store.spec.ts +++ b/core-web/libs/edit-content/src/lib/feature/edit-content/store/edit-content.store.spec.ts @@ -6,13 +6,10 @@ import { } from '@ngneat/spectator/jest'; import { of, throwError } from 'rxjs'; -import { Location } from '@angular/common'; import { HttpErrorResponse } from '@angular/common/http'; import { fakeAsync, tick } from '@angular/core/testing'; import { ActivatedRoute, Router } from '@angular/router'; -import { MessageService } from 'primeng/api'; - import { DotContentTypeService, DotFireActionOptions, @@ -43,17 +40,12 @@ describe('DotEditContentStore', () => { let dotHttpErrorManagerService: SpyObject; let dotEditContentService: SpyObject; - let mockActivatedRoute: { snapshot: { params?: any } }; let mockActivatedRouteParams: { [key: string]: any }; - let activatedRoute: SpyObject; let router: SpyObject; let workflowActionsService: SpyObject; let workflowActionsFireService: SpyObject; - let location: Location; - let messageService: MessageService; - const createService = createServiceFactory({ service: DotEditContentStore, mocks: [ @@ -64,7 +56,6 @@ describe('DotEditContentStore', () => { DotWorkflowsActionsService ], providers: [ - // mockProvider(ActivatedRoute, mockActivatedRoute), { provide: ActivatedRoute, useValue: { @@ -92,7 +83,6 @@ describe('DotEditContentStore', () => { workflowActionsFireService = spectator.inject(DotWorkflowActionsFireService); dotEditContentService = spectator.inject(DotEditContentService); - activatedRoute = spectator.inject(ActivatedRoute); router = spectator.inject(Router); }); @@ -140,10 +130,6 @@ describe('DotEditContentStore', () => { describe('initializeExistingContent', () => { const testInode = '123-test-inode'; it('should initialize existing content successfully', () => { - mockActivatedRoute = { - snapshot: { params: { contentType: undefined, id: testInode } } - }; - const mockContentlet = { inode: testInode, contentType: 'testContentType'