Skip to content

Commit

Permalink
Fix DateTimeComponent test
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Jan 2, 2024
1 parent 061578d commit f9cf0c9
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ describe('OwlDateTimeComponent', () => {
function createComponent(
component: Type<any>,
imports: Type<any>[] = [],
providers: (FactoryProvider | ValueProvider)[] = [],
entryComponents: Type<any>[] = []
providers: (FactoryProvider | ValueProvider)[] = []
): ComponentFixture<any> {
TestBed.configureTestingModule({
imports: [
Expand All @@ -79,13 +78,7 @@ describe('OwlDateTimeComponent', () => {
...imports
],
providers,
declarations: [component, ...entryComponents]
});

TestBed.overrideModule(BrowserDynamicTestingModule, {
set: {
entryComponents: [entryComponents]
}
declarations: [component]
}).compileComponents();

return TestBed.createComponent(component);
Expand Down

0 comments on commit f9cf0c9

Please sign in to comment.