From 9014b70e9d41e713e833a27a2dda5d602162e49d Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Fri, 7 Mar 2025 13:57:33 -0700 Subject: [PATCH] lint fix --- package.json | 2 +- projects/swagger/src/app/app.component.spec.ts | 16 +--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 4162dfcc4..7a5b45e2e 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 1294d6d8d..c9bea2703 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', - ); - }); }); -- GitLab