Apply prettier formatting
This commit is contained in:
+23
-15
@@ -35,27 +35,35 @@ declare global {
|
||||
|
||||
Cypress.Commands.add("goOffline", (): void => {
|
||||
cy.log("Going offline");
|
||||
cy.window({ log: false }).then(win => {
|
||||
cy.intercept("**/_matrix/**", {
|
||||
headers: {
|
||||
"Authorization": "Bearer " + win.mxMatrixClientPeg.matrixClient.getAccessToken(),
|
||||
cy.window({ log: false }).then((win) => {
|
||||
cy.intercept(
|
||||
"**/_matrix/**",
|
||||
{
|
||||
headers: {
|
||||
Authorization: "Bearer " + win.mxMatrixClientPeg.matrixClient.getAccessToken(),
|
||||
},
|
||||
},
|
||||
}, req => {
|
||||
req.destroy();
|
||||
});
|
||||
(req) => {
|
||||
req.destroy();
|
||||
},
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Cypress.Commands.add("goOnline", (): void => {
|
||||
cy.log("Going online");
|
||||
cy.window({ log: false }).then(win => {
|
||||
cy.intercept("**/_matrix/**", {
|
||||
headers: {
|
||||
"Authorization": "Bearer " + win.mxMatrixClientPeg.matrixClient.getAccessToken(),
|
||||
cy.window({ log: false }).then((win) => {
|
||||
cy.intercept(
|
||||
"**/_matrix/**",
|
||||
{
|
||||
headers: {
|
||||
Authorization: "Bearer " + win.mxMatrixClientPeg.matrixClient.getAccessToken(),
|
||||
},
|
||||
},
|
||||
}, req => {
|
||||
req.continue();
|
||||
});
|
||||
(req) => {
|
||||
req.continue();
|
||||
},
|
||||
);
|
||||
win.dispatchEvent(new Event("online"));
|
||||
});
|
||||
});
|
||||
@@ -85,4 +93,4 @@ Cypress.Commands.add("stubDefaultServer", (): void => {
|
||||
});
|
||||
|
||||
// Needed to make this file a module
|
||||
export { };
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user