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';
|
||||
spyOn($,'ajax').andCallThrough();
|
||||
List.disconnectUser(id);
|
||||
expect($.ajax).toHaveBeenCalledWith(
|
||||
url: "/people/" + id,
|
||||
expect($.ajax).toHaveBeenCalledWith({
|
||||
url: "/contacts/" + id,
|
||||
type: "DELETE",
|
||||
success: function(){
|
||||
$('.contact_list li[data-guid='+id+']').fadeOut(200);
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue