How to use the defaults.options.historyMode function in defaults

To help you get started, we’ve selected a few defaults examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mirrorjs / mirror / test / defaults.spec.js View on Github external
it('should ignore un-provided values for second and after calls', () => {
    defaults({
      reducers: {},
      historyMode: 'hash'
    })
    expect(options.historyMode).toBe('hash')

    defaults({})
    expect(options.historyMode).toBe('hash')
  })
github mirrorjs / mirror / test / defaults.spec.js View on Github external
it('should ignore un-provided values for second and after calls', () => {
    defaults({
      reducers: {},
      historyMode: 'hash'
    })
    expect(options.historyMode).toBe('hash')

    defaults({})
    expect(options.historyMode).toBe('hash')
  })