fix: set url option for jsdom-global (#3131)

This fixes `SecurityError: localStorage is not available for opaque origins` in mocha tests caused by jsdom (jsdom/jsdom#2304).
This commit is contained in:
Michael Khabarov
2018-12-28 11:11:20 +03:00
committed by Haoqun Jiang
parent 056ba0772c
commit 8d81e51aa8

View File

@@ -1 +1 @@
require('jsdom-global')(undefined, { pretendToBeVisual: true })
require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://localhost' })