I just need that me test object equill new data, but after override it in async function but it still old adter whenGET request
var fcrForm = {
employees:[]
};
$httpBackend.whenGET('http://localhost:3001/forms').respond(200, fcrForm);
$httpBackend.whenPUT('http://localhost:3001/forms').respond(function (method, url, data) {
fcrForm = JSON.parse(data)
return [200, fcrForm, {}]
});