From 1dc3042272fe80e3680a42fae6c7378ebb519b19 Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Fri, 7 Mar 2025 13:46:35 -0700 Subject: [PATCH] add swagger --- projects/swagger/.eslintrc.json | 1 - projects/swagger/src/app/app.component.spec.ts | 8 +++++--- projects/swagger/src/app/app.routes.ts | 2 +- projects/swagger/tsconfig.app.json | 8 ++------ projects/swagger/tsconfig.spec.json | 9 ++------- 5 files changed, 10 insertions(+), 18 deletions(-) diff --git a/projects/swagger/.eslintrc.json b/projects/swagger/.eslintrc.json index cbfca2811..686c3a322 100644 --- a/projects/swagger/.eslintrc.json +++ b/projects/swagger/.eslintrc.json @@ -39,4 +39,3 @@ } ] } - diff --git a/projects/swagger/src/app/app.component.spec.ts b/projects/swagger/src/app/app.component.spec.ts index 9baefa4f0..1294d6d8d 100644 --- a/projects/swagger/src/app/app.component.spec.ts +++ b/projects/swagger/src/app/app.component.spec.ts @@ -1,5 +1,5 @@ -import { TestBed } from '@angular/core/testing'; -import { AppComponent } from './app.component'; +import {TestBed} from '@angular/core/testing'; +import {AppComponent} from './app.component'; describe('AppComponent', () => { beforeEach(async () => { @@ -24,6 +24,8 @@ describe('AppComponent', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.nativeElement as HTMLElement; - expect(compiled.querySelector('h1')?.textContent).toContain('Hello, swagger'); + expect(compiled.querySelector('h1')?.textContent).toContain( + 'Hello, swagger', + ); }); }); diff --git a/projects/swagger/src/app/app.routes.ts b/projects/swagger/src/app/app.routes.ts index dc39edb5f..8b5e5fb23 100644 --- a/projects/swagger/src/app/app.routes.ts +++ b/projects/swagger/src/app/app.routes.ts @@ -1,3 +1,3 @@ -import { Routes } from '@angular/router'; +import {Routes} from '@angular/router'; export const routes: Routes = []; diff --git a/projects/swagger/tsconfig.app.json b/projects/swagger/tsconfig.app.json index f0d83929c..fc7c8d968 100644 --- a/projects/swagger/tsconfig.app.json +++ b/projects/swagger/tsconfig.app.json @@ -4,10 +4,6 @@ "outDir": "../../out-tsc/app", "types": [] }, - "files": [ - "src/main.ts" - ], - "include": [ - "src/**/*.d.ts" - ] + "files": ["src/main.ts"], + "include": ["src/**/*.d.ts"] } diff --git a/projects/swagger/tsconfig.spec.json b/projects/swagger/tsconfig.spec.json index 92c2fdcc2..34ec2fa56 100644 --- a/projects/swagger/tsconfig.spec.json +++ b/projects/swagger/tsconfig.spec.json @@ -2,12 +2,7 @@ "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/spec", - "types": [ - "jasmine" - ] + "types": ["jasmine"] }, - "include": [ - "src/**/*.spec.ts", - "src/**/*.d.ts" - ] + "include": ["src/**/*.spec.ts", "src/**/*.d.ts"] } -- GitLab