Skip to content

v3.1.4

Compare
Choose a tag to compare
@danielspaniel danielspaniel released this 26 Jun 10:25
· 152 commits to master since this release
  • mock ( used for mocking any url ) can now handle query parameters

Example:

    const type       = 'GET',
          url        = '/api/get-stuff',
          whatsUp    = {whats: 'up'},
          message    = {message: 'nothing much doc'}

    let theMock = mock({url}).withParams(whatsUp).returns(message);
    let json = await Ember.$.ajax({type, url, data: whatsUp});
    json // => {message: 'nothing much doc'}