Skip to content

Commit

Permalink
appease the linter wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kim committed Nov 7, 2023
1 parent d5bc27b commit 5597646
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/keys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ test("duplicate keys", () => {
// https://github.com/bikeshaving/crank/issues/267
test("component unmounts with key", () => {
const fn = Sinon.fake();
function *Component(this: Context) {
function* Component(this: Context) {
this.cleanup(() => {
fn();
});
Expand All @@ -753,10 +753,7 @@ test("component unmounts with key", () => {
</div>,
document.body,
);
renderer.render(
<div>{null}</div>,
document.body,
);
renderer.render(<div>{null}</div>, document.body);

Assert.is(fn.callCount, 2);
});
Expand Down

0 comments on commit 5597646

Please sign in to comment.