Fix async switches (#110)
If any switches are async, the subsequent code will execute before the switches are finished. This PR moves all that code to a new function, and debounces the calls to onSwitch() so it only executes once, after all the switches finish. Fizes #72.
This commit was merged in pull request #110.
This commit is contained in:
6
tests/setup.js
Normal file
6
tests/setup.js
Normal file
@@ -0,0 +1,6 @@
|
||||
var jsdomOptions = {
|
||||
url: "https://example.org/",
|
||||
runScripts: "dangerously"
|
||||
}
|
||||
|
||||
require("jsdom-global")("", jsdomOptions)
|
||||
Reference in New Issue
Block a user