Skip to content

Commit

Permalink
fix typechecking oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kim committed Nov 7, 2023
1 parent 4957f70 commit 4672b0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/keys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as Assert from "uvu/assert";
import * as Sinon from "sinon";

import {createElement} from "../src/crank.js";
import type {Context} from "../src/crank.js";
import {renderer} from "../src/dom.js";

const test = suite("keys");
Expand Down Expand Up @@ -735,7 +736,7 @@ test("duplicate keys", () => {
// https://github.com/bikeshaving/crank/issues/267
test("component unmounts with key", () => {
const fn = Sinon.fake();
function *Component() {
function *Component(this: Context) {
this.cleanup(() => {
fn();
});
Expand Down

0 comments on commit 4672b0d

Please sign in to comment.