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
@@ -92,9 +92,6 @@
|
|||||||
"typescript": "^3.7.3"
|
"typescript": "^3.7.3"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"testEnvironment": "node",
|
"testEnvironment": "node"
|
||||||
"setupFilesAfterEnv": [
|
|
||||||
"<rootDir>/spec/setupTests.js"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// load XmlHttpRequest mock
|
||||||
|
import "./setupTests";
|
||||||
import "../../dist/browser-matrix"; // uses browser-matrix instead of the src
|
import "../../dist/browser-matrix"; // uses browser-matrix instead of the src
|
||||||
import {MockStorageApi} from "../MockStorageApi";
|
import {MockStorageApi} from "../MockStorageApi";
|
||||||
import {WebStorageSessionStore} from "../../src/store/session/webstorage";
|
import {WebStorageSessionStore} from "../../src/store/session/webstorage";
|
||||||
@@ -65,6 +67,11 @@ 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