• 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
pagination_spec.js 1.98 KB