angular.mock.service.$browser.xhr.expectPUT

Description

Trains browser to expect a PUT request and respond to it.

Usage

$browser.xhr.expectPUT(url);

Parameters

Returns

{object}

Response configuration object. You can call its respond() method to configure what should the browser mock return when the response is flushed.