Skip to content

Commit

Permalink
return Promise for mock-doc CE registry hit instead of bare ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaskiewicz committed Jan 27, 2022
1 parent 8520a83 commit b365de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mock-doc/custom-element-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class MockCustomElementRegistry implements CustomElementRegistry {
tagName = tagName.toLowerCase();

if (this.__registry != null && this.__registry.has(tagName) === true) {
return this.__registry.get(tagName).cstr;
return Promise.resolve<CustomElementConstructor>(this.__registry.get(tagName).cstr);
}

return new Promise<CustomElementConstructor>((resolve) => {
Expand Down

0 comments on commit b365de1

Please sign in to comment.