fix syntax error and spec
This commit is contained in:
parent
3538bda06d
commit
c1e679ff8d
1 changed files with 3 additions and 3 deletions
|
|
@ -9,13 +9,13 @@ describe("Contact List", function() {
|
||||||
var id = '3';
|
var id = '3';
|
||||||
spyOn($,'ajax').andCallThrough();
|
spyOn($,'ajax').andCallThrough();
|
||||||
List.disconnectUser(id);
|
List.disconnectUser(id);
|
||||||
expect($.ajax).toHaveBeenCalledWith(
|
expect($.ajax).toHaveBeenCalledWith({
|
||||||
url: "/people/" + id,
|
url: "/contacts/" + id,
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
success: function(){
|
success: function(){
|
||||||
$('.contact_list li[data-guid='+id+']').fadeOut(200);
|
$('.contact_list li[data-guid='+id+']').fadeOut(200);
|
||||||
}
|
}
|
||||||
);
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue