Remove the IndexedDB warning when running tests in jest
This commit is contained in:
parent
9ec9bed80e
commit
edd89b972b
1 changed files with 2 additions and 1 deletions
|
@ -358,7 +358,8 @@ export class Studio {
|
||||||
|
|
||||||
// Check for support.
|
// Check for support.
|
||||||
if (!('indexedDB' in window)) {
|
if (!('indexedDB' in window)) {
|
||||||
console.log("This browser doesn't support IndexedDB.")
|
if (process.env.NODE_ENV !== 'test')
|
||||||
|
console.log("This browser doesn't support IndexedDB.")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
getAssetUrl: (assetId: string) => {
|
getAssetUrl: (assetId: string) => {
|
||||||
|
|
Loading…
Reference in a new issue