Skip to content

Commit

Permalink
refactor(Node Authoring): Clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokiterashima committed Dec 16, 2024
1 parent c06a79e commit 83df929
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { ComponentTypeServiceModule } from '../../../services/componentTypeServi
import { DeleteTranslationsService } from '../../../services/deleteTranslationsService';
import { CopyTranslationsService } from '../../../services/copyTranslationsService';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { CreateComponentService } from '../../../services/createComponentService';
import { VLEProjectService } from '../../../vle/vleProjectService';
import { NotebookService } from '../../../services/notebookService';
Expand All @@ -47,7 +46,7 @@ let teacherDataService: TeacherDataService;
let teacherProjectService: TeacherProjectService;
let saveProjectSpy: jasmine.Spy;

fdescribe('NodeAuthoringComponent', () => {
describe('NodeAuthoringComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [NodeAuthoringComponent],
Expand All @@ -64,7 +63,6 @@ fdescribe('NodeAuthoringComponent', () => {
MatDividerModule,
MatIconModule,
MatInputModule,
RouterTestingModule,
StudentTeacherCommonServicesModule,
TeacherNodeIconComponent
],
Expand Down Expand Up @@ -197,10 +195,6 @@ function clickComponentDeleteButton(componentId: string): void {
queryByCssAndClickDelete(`#${componentId} button`);
}

function clickDeleteComponentsButton(): void {
queryByCssAndClickDelete('button');
}

function queryByCssAndClickDelete(css: string): void {
clickNativeElement(queryByCssAndInnerText(css, 'delete'));
}
Expand Down

0 comments on commit 83df929

Please sign in to comment.