Fix unit tests (#2428)

* only create toaster if we're on the browser

* drop/fix references to window

* add back fe unit tests
This commit is contained in:
Severiano Badajoz
2021-09-15 00:43:59 +00:00
committed by GitHub
parent 01013bcf04
commit 0634160c0c
4 changed files with 15 additions and 20 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ const CXG_SERVER_PORT =
let _API;
if (window.CELLXGENE && window.CELLXGENE.API) {
if (typeof window !== "undefined" && window.CELLXGENE && window.CELLXGENE.API) {
_API = window.CELLXGENE.API;
} else {
if (CXG_SERVER_PORT === undefined) {