From 290a78f6b0cc453222b19434472e8ff826b0cf01 Mon Sep 17 00:00:00 2001 From: Alexander Petros Date: Thu, 21 Dec 2023 13:25:46 -0500 Subject: [PATCH] Fix delete statement in two tests --- package.json | 3 ++- test/core/ajax.js | 2 +- test/core/shadowdom.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4116a5fd..a272e698 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "web-types": "editors/jetbrains/htmx.web-types.json", "scripts": { "dist": "./scripts/dist.sh", - "lint": "eslint src/htmx.js", + "lint": "eslint src/htmx.js test/attributes/ test/core/ test/util/", "format": "eslint --fix src/htmx.js test/attributes/ test/core/ test/util/", "test": "mocha-chrome test/index.html", "test-types": "tsc --project ./jsconfig.json", @@ -55,6 +55,7 @@ "no-unused-vars": 0, "no-useless-call": 0, "no-useless-escape": 0, + "no-unused-expressions": 0, "space-before-function-paren": [ "error", "never" diff --git a/test/core/ajax.js b/test/core/ajax.js index 42d733a6..2d515570 100644 --- a/test/core/ajax.js +++ b/test/core/ajax.js @@ -642,7 +642,7 @@ describe("Core htmx AJAX Tests", function(){ this.server.respond(); foo.bar().should.equal(42); } finally { - delete foo; + delete window.foo; } }); diff --git a/test/core/shadowdom.js b/test/core/shadowdom.js index 7be737f9..a4b864ff 100644 --- a/test/core/shadowdom.js +++ b/test/core/shadowdom.js @@ -706,7 +706,7 @@ describe("Core htmx Shadow DOM Tests", function() { this.server.respond(); foo.bar().should.equal(42); } finally { - delete foo; + delete window.foo; } });