Skip to content

Commit

Permalink
fix: get rid of TS lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
fczbkk committed Nov 6, 2022
1 parent f518f7f commit 3ed48c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/memo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ import { assert } from "chai";
import { createMemo } from "../src/memo.js";
import { CssSelectorType } from "../src/types.js";

function createRoot() {
return document.body.appendChild(document.createElement("div"));
}

describe("Memo", () => {
let root: HTMLElement;
let root = createRoot();

/**
* Simple way to retrieve target element for test.
Expand All @@ -22,7 +26,7 @@ describe("Memo", () => {
}

beforeEach(() => {
root = document.body.appendChild(document.createElement("div"));
root = createRoot();
});

afterEach(() => {
Expand Down

0 comments on commit 3ed48c2

Please sign in to comment.