• Mark Florian's avatar
    Set window location in tests more consistently · bf3ddac6
    Mark Florian authored
    Jest/JSDOM provides a more robust and simple way of setting the mocked
    `window.location`, which preserves all the expected behaviours and
    properties of `window.location`.
    
    By using it, we can get rid of hacks which attempt to recreate
    behaviours of `window.location` that we lost by mutating it ourselves
    (for instance, adding a `toString` method).
    bf3ddac6
start.js 947 Bytes