Skip to content

Commit

Permalink
add mock navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed May 4, 2023
1 parent 7034177 commit 19174c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ Object.defineProperty(win.document.body.style, 'transform', {
};
}
});
// mock documnet
// mock document
global['document'] = win.document;
// othres mock
// mock navigator
global['navigator'] = win.navigator;
// others mock
global['CSS'] = null;
// global['XMLHttpRequest'] = require('xmlhttprequest').XMLHttpRequest;
global['Prism'] = null;
Expand Down

0 comments on commit 19174c6

Please sign in to comment.