devlucky / Kakapo.js

:bird: Next generation mocking framework in Javascript

Home Page:http://devlucky.github.io/kakapo-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix Router example using strategies in docs

mtscrb opened this issue · comments

Current docs shows this as an example:

const fetchRouter = new Router({
  strategies: ['fetch']
});

Which is wrong, since that argument should be the second one, not the first one.

A proper example would be:

const fetchRouter = new Router(
  {} , // interceptor options
  {
    strategies: ['fetch']
  }
);