       state: "unpinned"
     result = shouldUpdate(110, 100, propDefaults, state)
     expect(result.action).to.equal('none')
-
-    # Restore default
-    propDefaults.upTolerance = 0
 
   it "should return an action of 'none' if haven't scrolled
       past height of header", ->


  it "should return an action of 'unfix' if
      currentScroll is less than 0", ->
    
    state =
      height: 100
      state: "pinned"


shouldUpdate = require '../src/shouldUpdate'

propDefaults = {}

describe 'shouldUpdate', ->
  beforeEach ->
    propDefaults =
      disableInlineStyles: false
      disable: false
      upTolerance: 0
      downTolerance: 0
      offset: 0
      pinStart: 0

  it 'should exist', ->
    expect(shouldUpdate).to.exist

