 
 shouldUpdate = require '../src/shouldUpdate'
 
-propDefaults =
-  disableInlineStyles: false
-  disable: false
-  upTolerance: 0
-  downTolerance: 0
-  offset: 0
+propDefaults = {}
 
 describe 'shouldUpdate', ->
+  beforeEach ->
+    propDefaults =
+      disableInlineStyles: false
+      disable: false
+      upTolerance: 0
+      downTolerance: 0
+      offset: 0
+      pinStart: 0
+
   it 'should exist', ->
     expect(shouldUpdate).to.exist
 

    result = shouldUpdate(100, 110, propDefaults, state)
    expect(result.action).to.equal('none')

    # Restore default
    propDefaults.downTolerance = 0

  it 'should return an action of "pin" if scrolling up and unpinned', ->
    state =
      height: 0

      state: "unpinned"
    result = shouldUpdate(50, 10, propDefaults, state)
    expect(result.action).to.equal('pin')

    state =
      height: 100
      state: "unpinned"
    result = shouldUpdate(50, 0, propDefaults, state)
    expect(result.action).to.equal('pin')

  it "should return an action of 'none' if scrolling down when pinned within
      height of header", ->
