From 46a0a9f675ac50d7bd52c2653f571174954cb911 Mon Sep 17 00:00:00 2001
From: Brandon Clayton <bclayton@usgs.gov>
Date: Tue, 30 Aug 2022 09:14:30 -0600
Subject: [PATCH] add unit tests

---
 example/src/app/app.component.spec.ts | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/example/src/app/app.component.spec.ts b/example/src/app/app.component.spec.ts
index a375012..9fb1959 100644
--- a/example/src/app/app.component.spec.ts
+++ b/example/src/app/app.component.spec.ts
@@ -15,18 +15,23 @@ describe('AppComponent', () => {
     expect(app).toBeTruthy();
   });
 
-  it("should have as title 'example'", () => {
+  it("should have as title 'Disaggregation'", () => {
     const fixture = TestBed.createComponent(AppComponent);
     const app = fixture.componentInstance;
-    expect(app.title).toEqual('example');
+    expect(app.title).toEqual('Disaggregation');
   });
 
-  it('should render title', () => {
+  it('should render select menu', () => {
     const fixture = TestBed.createComponent(AppComponent);
     fixture.detectChanges();
     const compiled = fixture.nativeElement;
-    expect(compiled.querySelector('.content span').textContent).toContain(
-      'example app is running!'
-    );
+    expect(compiled.querySelector('select')).toBeTruthy();
+  });
+
+  it('should render svg', () => {
+    const fixture = TestBed.createComponent(AppComponent);
+    fixture.detectChanges();
+    const compiled = fixture.nativeElement;
+    expect(compiled.querySelector('svg')).toBeTruthy();
   });
 });
-- 
GitLab