v3.1.4
- 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'}