diff --git a/package.json b/package.json index 4162dfcc417fe04bf8080bd33323a173e8b8c4d5..7a5b45e2e2fd3eb942f83f01f741d5a344c1c1a5 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.9.0", "scripts": { "analyze": "npm run build:stats && webpack-bundle-analyzer dist/nshmp-apps/stats.json", - "build": "ng build nshmp-apps && ng build nshmp-ws", + "build": "ng build nshmp-apps && ng build nshmp-ws && ng build swagger", "build:prod": "npm run build:apps:prod && npm run build:ws:prod && npm run build:swagger:prod", "build:apps:prod": "ng build nshmp-apps --configuration production", "build:swagger:prod": "ng build swagger --configuration production", diff --git a/projects/swagger/src/app/app.component.spec.ts b/projects/swagger/src/app/app.component.spec.ts index 1294d6d8d29d45542d0da60f48159ad6bcd3d53b..c9bea27033c97f217036f9d5ab64530127d76540 100644 --- a/projects/swagger/src/app/app.component.spec.ts +++ b/projects/swagger/src/app/app.component.spec.ts @@ -1,4 +1,5 @@ import {TestBed} from '@angular/core/testing'; + import {AppComponent} from './app.component'; describe('AppComponent', () => { @@ -13,19 +14,4 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app).toBeTruthy(); }); - - it(`should have the 'swagger' title`, () => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.componentInstance; - expect(app.title).toEqual('swagger'); - }); - - it('should render title', () => { - const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); - const compiled = fixture.nativeElement as HTMLElement; - expect(compiled.querySelector('h1')?.textContent).toContain( - 'Hello, swagger', - ); - }); });