@@ -226,6 +230,7 @@ describe('tests for "closet" module', () => {
window.url = url;
window.swal = swal;
window.toastr = toastr;
+ window.showAjaxError = jest.fn();
document.body.innerHTML = `
@@ -275,6 +280,7 @@ describe('tests for "closet" module', () => {
window.url = url;
window.swal = swal;
window.toastr = toastr;
+ window.showAjaxError = jest.fn();
document.body.innerHTML = `

@@ -316,6 +322,7 @@ describe('tests for "player" module', () => {
}));
window.url = url;
window.fetch = fetch;
+ window.showAjaxError = jest.fn();
window.TexturePreview = require('../common/texture-preview');
window.MSP = {
changeSkin: jest.fn(),
@@ -353,6 +360,7 @@ describe('tests for "player" module', () => {
window.fetch = fetch;
window.url = url;
window.toastr = toastr;
+ window.showAjaxError = jest.fn();
document.body.innerHTML = `