spec_app/spec/javascripts/up/proxy_spec.js.coffee in unpoly-rails-0.54.0 vs spec_app/spec/javascripts/up/proxy_spec.js.coffee in unpoly-rails-0.54.1
- old
+ new
@@ -1062,10 +1062,10 @@
# Since the preloading failed, we send another request
expect(jasmine.Ajax.requests.count()).toEqual(2)
# Since there isn't anyone who could handle the rejection inside
# the event handler, our handler mutes the rejection.
- expect(window).not.toHaveUnhandledRejections()
+ expect(window).not.toHaveUnhandledRejections() if REJECTION_EVENTS_SUPPORTED
it 'triggers a separate AJAX request when hovered multiple times and the cache expires between hovers', asyncSpec (next) ->
up.proxy.config.cacheExpiry = 50
up.proxy.config.preloadDelay = 0