From 41517a8184cb5e54b6f2a8f2206b33c149d21939 Mon Sep 17 00:00:00 2001 From: tobymao Date: Fri, 27 Aug 2021 12:19:23 -0700 Subject: [PATCH] fix lint --- test/unit/core.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/core.ts b/test/unit/core.ts index a201830..c53a873 100644 --- a/test/unit/core.ts +++ b/test/unit/core.ts @@ -87,19 +87,19 @@ describe("snabbdom", function () { assert.strictEqual(vnode.text, "I am a string"); }); it("can create vnode with String obj content", function() { - var vnode = h("a", new String("b")); + const vnode = h("a", new String("b")); assert.equal(vnode.text, "b"); }); it("can create vnode with props and String obj content", function() { - var vnode = h("a", {}, new String("b")); + const vnode = h("a", {}, new String("b")); assert.equal(vnode.text, "b"); }); it("can create vnode with array String obj content", function() { - var vnode = h("a", ["b", new String("c")]); + const vnode = h("a", ["b", new String("c")]); assert.equal(vnode.text, "bc"); }); it("can create vnode with Number obj content", function() { - var vnode = h("a", new Number(1)); + const vnode = h("a", new Number(1)); assert.equal(vnode.text, "1"); }); it("can create vnode with null props", function () {