Skip to content

Commit

Permalink
Specify option types
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Aug 7, 2023
1 parent 1558efc commit 56c9181
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
10 changes: 8 additions & 2 deletions projects/natural/src/lib/modules/matomo/matomo.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import {TestBed} from '@angular/core/testing';
import {NATURAL_SEO_CONFIG, NaturalMatomoService, NaturalSeo, NaturalSeoService} from '@ecodev/natural';
import {
NATURAL_SEO_CONFIG,
NaturalMatomoService,
NaturalSeo,
NaturalSeoConfig,
NaturalSeoService,
} from '@ecodev/natural';
import {RouterTestingModule} from '@angular/router/testing';
import {Component} from '@angular/core';
import {Router, Routes} from '@angular/router';
Expand Down Expand Up @@ -46,7 +52,7 @@ describe('NaturalMatomoService', () => {
provide: NATURAL_SEO_CONFIG,
useValue: {
applicationName: 'my app',
},
} satisfies NaturalSeoConfig,
},
],
}).compileComponents();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
import {NATURAL_DROPDOWN_CONTAINER_DATA, NaturalDropdownContainerComponent} from './dropdown-container.component';
import {
NATURAL_DROPDOWN_CONTAINER_DATA,
NaturalDropdownContainerComponent,
NaturalDropdownContainerData,
} from './dropdown-container.component';

describe('NaturalDropdownContainerComponent', () => {
let component: NaturalDropdownContainerComponent;
Expand All @@ -12,7 +16,7 @@ describe('NaturalDropdownContainerComponent', () => {
providers: [
{
provide: NATURAL_DROPDOWN_CONTAINER_DATA,
useValue: {},
useValue: {showValidateButton: false} satisfies NaturalDropdownContainerData,
},
],
}).compileComponents();
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {provideHttpClient} from '@angular/common/http';
import {routes} from './app/app-routing';
import {provideAnimations} from '@angular/platform-browser/animations';
import {bootstrapApplication} from '@angular/platform-browser';
import {MAT_PAGINATOR_DEFAULT_OPTIONS} from '@angular/material/paginator';
import {MAT_PAGINATOR_DEFAULT_OPTIONS, MatPaginatorDefaultOptions} from '@angular/material/paginator';
import {AnyLinkMutationService} from './app/shared/services/any-link-mutation.service';
import {DemoLoggerExtra} from './app/demo.error-handler';
import {
Expand Down Expand Up @@ -52,7 +52,7 @@ bootstrapApplication(AppComponent, {
provide: MAT_PAGINATOR_DEFAULT_OPTIONS,
useValue: {
formFieldAppearance: 'fill',
},
} satisfies MatPaginatorDefaultOptions,
},
provideAnimations(),
provideHttpClient(),
Expand Down

0 comments on commit 56c9181

Please sign in to comment.