Sha256: 0b9f27ac0f795aa2d1b8effc893358312d3da1c0e4a479e12db0a48e3066bc05

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 Bytes

Contents

afterEach (done) ->
  # If the spec has installed the Jasmine clock, uninstall it so
  # the timeout below will actually happen.
  jasmine.clock().uninstall()

  # Wait one more frame so pending callbacks have a chance to run.
  # Pending callbacks might change the URL or cause errors that bleed into
  # the next example.

  up.util.nextFrame =>
    up.reset()
    up.browser.popCookie(up.protocol.config.methodCookie)

    # Give async reset behavior another frame to play out,
    # then start the next example.
    up.util.nextFrame ->
      $('.up-toast').remove()
      done()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unpoly-rails-0.57.0 spec_app/spec/javascripts/helpers/reset_up.js.coffee