Skip to content

v3.0.3

Compare
Choose a tag to compare
@danielspaniel danielspaniel released this 11 Apr 12:04
· 177 commits to master since this release
  • fixes #337 by clarifying that mockFindAll can have query params and they will be used first like mockQuery will when the request has query params

Example:

  let mockF   = mockFindAll('user', 2),
      mockFQ  = mockFindAll('user', 1).withParams({foo: true}),
      mockQ   = mockQuery('user', {moo: true});

  store.findAll('user') // mockF used
  store.findAll('user'})  //  with url  "/users?foo=true"  mockFQ used
  store.query('user', {foo: true}) // mockFQ used
  store.query('user', {moo: true}) // mockQ used