Fix delete statement in two tests

This commit is contained in:
Alexander Petros 2023-12-21 13:25:46 -05:00
parent 4b890ce72d
commit 290a78f6b0
3 changed files with 4 additions and 3 deletions

View File

@ -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"

View File

@ -642,7 +642,7 @@ describe("Core htmx AJAX Tests", function(){
this.server.respond();
foo.bar().should.equal(42);
} finally {
delete foo;
delete window.foo;
}
});

View File

@ -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;
}
});