mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix failing tests replace ajax with spy
This commit is contained in:
@@ -79,6 +79,8 @@ describe('Like component', () => {
|
||||
}));
|
||||
|
||||
it('should decrease the number of likes when clicked and is already liked', async(() => {
|
||||
spyOn(service, 'deleteRating').and.returnValue(Observable.of('');
|
||||
|
||||
simulateResponseWithLikes(1);
|
||||
|
||||
component.likesCounter = 2;
|
||||
|
Reference in New Issue
Block a user