Remove the after in the Lit test (#2710)

This commit is contained in:
Matthew Phillips 2022-03-03 10:01:30 -05:00 committed by GitHub
parent fd6c459d34
commit 5b1d700134
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,12 +71,3 @@ describe('LitElement test', function () {
expect($('my-element').html()).to.include(`<div>Testing...</div>`); expect($('my-element').html()).to.include(`<div>Testing...</div>`);
}); });
}); });
after(async () => {
// The Lit renderer adds browser globals that interfere with other tests, so remove them now.
const globals = Object.keys(globalThis.window || {});
globals.splice(globals.indexOf('global'), 1);
for (let name of globals) {
delete globalThis[name];
}
});