Skip to content

Commit 5c84f95

Browse files
committed
fix types
1 parent 1f9f331 commit 5c84f95

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

projects/testing-library/src/lib/models.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Type, DebugElement } from '@angular/core';
22
import { ComponentFixture } from '@angular/core/testing';
33
import { Routes } from '@angular/router';
4-
import { BoundFunction, Queries, queries, Config as dtlConfig } from '@testing-library/dom';
5-
import { OptionsReceived } from 'pretty-format';
4+
import { BoundFunction, Queries, queries, Config as dtlConfig, PrettyFormatOptions } from '@testing-library/dom';
65

76
export type RenderResultQueries<Q extends Queries = typeof queries> = { [P in keyof Q]: BoundFunction<Q[P]> };
87
export interface RenderResult<ComponentType, WrapperType = ComponentType> extends RenderResultQueries {
@@ -23,7 +22,7 @@ export interface RenderResult<ComponentType, WrapperType = ComponentType> extend
2322
debug: (
2423
element?: Element | HTMLDocument | (Element | HTMLDocument)[],
2524
maxLength?: number,
26-
options?: OptionsReceived,
25+
options?: PrettyFormatOptions,
2726
) => void;
2827
/**
2928
* @description

projects/testing-library/src/lib/testing-library.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export async function render<SutType, WrapperType = SutType>(
5959
providers = [],
6060
schemas = [],
6161
queries,
62-
template,
62+
template = undefined,
6363
wrapper = WrapperComponent,
6464
componentProperties = {},
6565
componentProviders = [],
@@ -202,7 +202,7 @@ export async function render<SutType, WrapperType = SutType>(
202202
}
203203

204204
async function createComponent<SutType>(component: Type<SutType>): Promise<ComponentFixture<SutType>> {
205-
/* Make sure angular application is initialized before creating component */
205+
// Make sure angular application is initialized before creating component
206206
await inject(ApplicationInitStatus).donePromise;
207207
return TestBed.createComponent(component);
208208
}

0 commit comments

Comments
 (0)