We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d32b104 commit 05c519bCopy full SHA for 05c519b
1 file changed
src/utils/index.test.ts
@@ -4,7 +4,7 @@ import { defineCustomElement } from "./index";
4
describe("defineCustomElement", () => {
5
let customElementsDefineSpy: ReturnType<typeof vi.spyOn>;
6
let customElementsGetSpy: ReturnType<typeof vi.spyOn>;
7
- let Component;
+ let Component: CustomElementConstructor;
8
let tagName: string;
9
10
beforeEach(() => {
@@ -28,7 +28,7 @@ describe("defineCustomElement", () => {
28
defineCustomElement(tagName, Component);
29
30
expect(customElementsGetSpy).toHaveBeenCalledWith(tagName);
31
- // we still expect this to be called once because of the conditional check
+ // we still expect this to be called once because of the conditional check in our function
32
expect(customElementsDefineSpy).toHaveBeenCalledTimes(1);
33
});
34
0 commit comments