Skip to content

Commit

Permalink
fix(types): allow all elements (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickserv authored Nov 21, 2020
1 parent 12184a8 commit 194f74f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/testing-library/src/lib/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface RenderResult<ComponentType, WrapperType = ComponentType> extend
* The containing DOM node of your rendered Angular Component.
* This is a regular DOM node, so you can call container.querySelector etc. to inspect the children.
*/
container: HTMLElement;
container: Element;
/**
* @description
* Prints out the component's DOM with syntax highlighting.
Expand Down
2 changes: 1 addition & 1 deletion projects/testing-library/src/lib/testing-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ async function waitForElementToBeRemovedWrapper<T>(
): Promise<void> {
let cb;
if (typeof callback !== 'function') {
const elements = (Array.isArray(callback) ? callback : [callback]) as HTMLElement[];
const elements = (Array.isArray(callback) ? callback : [callback]) as Element[];
const getRemainingElements = elements.map((element) => {
let parent = element.parentElement;
while (parent.parentElement) {
Expand Down

0 comments on commit 194f74f

Please sign in to comment.