Skip to content

Commit

Permalink
add list input types
Browse files Browse the repository at this point in the history
  • Loading branch information
clemiller committed Jul 10, 2024
1 parent 6a3827d commit 4ce3ab7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nav-app/src/app/list-input/list-input.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ describe('ListInputComponent', () => {
MatIconModule,
MatDividerModule,
MatTooltipModule,
BrowserAnimationsModule
BrowserAnimationsModule,
Link,
Metadata,
],
declarations: [ListInputComponent],
}).compileComponents()
Expand All @@ -49,6 +51,7 @@ describe('ListInputComponent', () => {
});

it('should and remove from list', () => {
component.config.type = 'metadata';
component.addDivider(0);
component.add();
component.add();
Expand All @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit 4ce3ab7

Please sign in to comment.