mock-xmlhttprequest
Advanced tools
Comparing version 8.4.0 to 8.4.1
{ | ||
"name": "mock-xmlhttprequest", | ||
"version": "8.4.0", | ||
"version": "8.4.1", | ||
"description": "XMLHttpRequest mock for testing", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -191,5 +191,6 @@ [![Build Status](https://app.travis-ci.com/berniegp/mock-xmlhttprequest.svg?branch=master)](https://app.travis-ci.com/berniegp/mock-xmlhttprequest) | ||
const savedXMLHttpRequest = globalThis.XMLHttpRequest; | ||
try { | ||
// Install in the global context so "new XMLHttpRequest()" creates MockXhr instances | ||
global.XMLHttpRequest = MockXhr; | ||
globalThis.XMLHttpRequest = MockXhr; | ||
@@ -202,3 +203,3 @@ // Do something that send()s an XMLHttpRequest to '/my/url' and returns a Promise | ||
// Restore the original XMLHttpRequest | ||
delete global.XMLHttpRequest; | ||
globalThis.XMLHttpRequest = savedXMLHttpRequest; | ||
} | ||
@@ -205,0 +206,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
215055
3379
554