From 4ce3ab7c4232f9d93ee49ca7219f09b5d07942a0 Mon Sep 17 00:00:00 2001 From: Charissa Miller <48832936+clemiller@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:42:33 -0400 Subject: [PATCH] add list input types --- nav-app/src/app/list-input/list-input.component.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nav-app/src/app/list-input/list-input.component.spec.ts b/nav-app/src/app/list-input/list-input.component.spec.ts index 3ca70334d..ccc932199 100644 --- a/nav-app/src/app/list-input/list-input.component.spec.ts +++ b/nav-app/src/app/list-input/list-input.component.spec.ts @@ -23,7 +23,9 @@ describe('ListInputComponent', () => { MatIconModule, MatDividerModule, MatTooltipModule, - BrowserAnimationsModule + BrowserAnimationsModule, + Link, + Metadata, ], declarations: [ListInputComponent], }).compileComponents() @@ -49,6 +51,7 @@ describe('ListInputComponent', () => { }); it('should and remove from list', () => { + component.config.type = 'metadata'; component.addDivider(0); component.add(); component.add(); @@ -64,6 +67,7 @@ describe('ListInputComponent', () => { }); it('should throw errors for metadata', () => { + component.config.type = 'metadata'; let consoleSpy = spyOn(console, 'error'); let metadata = new Metadata(); metadata.deserialize(JSON.stringify(MockData.invalidMetadata)); @@ -78,6 +82,7 @@ describe('ListInputComponent', () => { }); it('should throw errors for links', () => { + component.config.type = 'links'; let consoleSpy = spyOn(console, 'error'); let link = new Link(); link.deserialize(JSON.stringify(MockData.invalidLink));