UNPKG

webmock

Version:

Mock AJAX/HTTP/SSR - Automatically generate documentation

9 lines (8 loc) 268 B
module.exports = function (url, settings) { const self = this if (!settings.view) { throw new Error('node_modules/webmock: mock.render(settings) settings.view is required') } settings.type = settings.type || 'get' self.url(url, settings) }