diff --git a/firebird-ng/package.json b/firebird-ng/package.json index 19b9c8c..c640a24 100644 --- a/firebird-ng/package.json +++ b/firebird-ng/package.json @@ -7,7 +7,7 @@ "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test", - "test-headless": "ng test --watch=false --browsers=ChromeHeadlessCI" + "test-headless": "ng test --browsers=ChromeHeadless --watch=false --code-coverage --progress=false" }, "private": true, "dependencies": { diff --git a/firebird-ng/src/app/app.component.spec.ts b/firebird-ng/src/app/app.component.spec.ts index 718e9e5..1b6dcb0 100644 --- a/firebird-ng/src/app/app.component.spec.ts +++ b/firebird-ng/src/app/app.component.spec.ts @@ -1,11 +1,12 @@ import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; -import { RouterModule } from '@angular/router'; +import {provideRouter} from '@angular/router'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [AppComponent], + providers: [provideRouter([])], }).compileComponents(); }); diff --git a/firebird-ng/src/app/geometry.service.ts b/firebird-ng/src/app/geometry.service.ts index bd91b55..59c4bee 100644 --- a/firebird-ng/src/app/geometry.service.ts +++ b/firebird-ng/src/app/geometry.service.ts @@ -47,8 +47,8 @@ export class GeometryService { "Default/SweeperMag*", "Default/AnalyzerMag*", "*ZDC*", - "*AstroPix_Module_*", - "Default/Ecal*/fiber_grid*", + //"*AstroPix_Module_*", + //"Default/Ecal*/fiber_grid*", ]; this.fineTuneRules = [ @@ -132,13 +132,13 @@ export class GeometryService { // analyzeGeoNodes(geoManager, 1); console.time('Prune nodes coarse'); - // editGeoNodes(geoManager, this.totalRules, 1) + editGeoNodes(geoManager, this.totalRules, 1) console.timeEnd('Prune nodes coarse'); // >oO analyzeGeoNodes(geoManager, 1); console.time('Prune nodes fine'); - editGeoNodes(geoManager, this.totalRules, 15) + // editGeoNodes(geoManager, this.totalRules, 15) console.timeEnd('Prune nodes fine'); //analyzeGeoNodes(geoManager, 1); diff --git a/firebird-ng/src/app/utils/cern-root.utils.spec.ts b/firebird-ng/src/app/utils/cern-root.utils.spec.ts index db063c9..ec6d3c0 100644 --- a/firebird-ng/src/app/utils/cern-root.utils.spec.ts +++ b/firebird-ng/src/app/utils/cern-root.utils.spec.ts @@ -58,11 +58,10 @@ describe('findGeoNodes', () => { }; it('should return only nodes matching the specified pattern', () => { - const pattern = "*Child*"; + const pattern = "*Child2*"; const results = findGeoNodes(rootNode, pattern); - expect(results.length).toBe(2); - expect(results[0].fullPath).toContain('Root/Child1'); - expect(results[1].fullPath).toContain('Root/Child2'); + expect(results.length).toBe(1); + expect(results[0].fullPath).toContain('Root/Child2'); }); it('should return an empty array if no nodes match the pattern', () => {