You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
@@ -16,3 +16,8 @@ limitations under the License.
|
|||||||
|
|
||||||
// stub for browser-matrix browserify tests
|
// stub for browser-matrix browserify tests
|
||||||
global.XMLHttpRequest = jest.fn();
|
global.XMLHttpRequest = jest.fn();
|
||||||
|
|
||||||
|
afterAll(() => {
|
||||||
|
// clean up XMLHttpRequest mock
|
||||||
|
global.XMLHttpRequest = undefined;
|
||||||
|
});
|
||||||
|
|||||||
@@ -67,11 +67,6 @@ describe("Browserify Test", function() {
|
|||||||
await httpBackend.stop();
|
await httpBackend.stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(() => {
|
|
||||||
// clean up XMLHttpRequest mock
|
|
||||||
global.XMLHttpRequest = undefined;
|
|
||||||
});
|
|
||||||
|
|
||||||
it("Sync", async function() {
|
it("Sync", async function() {
|
||||||
const event = utils.mkMembership({
|
const event = utils.mkMembership({
|
||||||
room: ROOM_ID,
|
room: ROOM_ID,
|
||||||
|
|||||||
Reference in New Issue
Block a user