Because we override the `window.onbeforeunload`, Chrome would sometimes show a popup box when trying to close the window at the end of the tests.
@@ -2,7 +2,8 @@ describe('Filters', function() {
let $filter;
- beforeAll(() => window.onbeforeunload = () => 'Ignoring page reload request');
+ // Ignoring page reload request
+ beforeAll(() => window.onbeforeunload = () => null);
beforeEach(function() {
@@ -2,7 +2,8 @@ describe('Helpers', function () {
let stringService;
beforeEach(function () {
// Load 3ema.services
@@ -2,7 +2,8 @@ describe('MessageService', function() {
let messageService;
@@ -2,7 +2,8 @@ describe('MimeService', function() {
let $service;
@@ -2,7 +2,8 @@ describe('QrCodeService', function() {
@@ -2,7 +2,8 @@ describe('UriService', function() {