     CURRENT_ROUTER_PARAMS = options.routerParams or {}
     CURRENT_ROUTER_QUERY = options.routerQuery or {}
     CURRENT_ROUTER_PATH   = options.routerPath   or '/'
-    Router.currentParams.mockReturnValue(CURRENT_ROUTER_PARAMS)
-    Router.currentQuery.mockReturnValue(CURRENT_ROUTER_QUERY)
+    Router.currentParams.mockReturnValue?(CURRENT_ROUTER_PARAMS)
+    Router.currentQuery.mockReturnValue?(CURRENT_ROUTER_QUERY)
     root = document.createElement('div')
     promise = new Promise( (resolve, reject) ->
       props = _.clone(options.props)

jest.mock('../../../src/helpers/router')
Router = require '../../../src/helpers/router'

_ = require 'underscore'

beforeEach ->
  sandbox = sinon.sandbox.create()
  ROUTER  = new TestRouter

afterEach ->
  sandbox.restore()
