Fix document list tests

This commit is contained in:
Denys Vuika
2016-05-31 12:23:20 +01:00
parent b69c30192e
commit 30ec75fb0b

View File

@@ -140,7 +140,7 @@ describe('DocumentList', () => {
spyOn(action, 'handler').and.stub(); spyOn(action, 'handler').and.stub();
documentList.executeContentAction(node, action); documentList.executeContentAction(node, action);
expect(action.handler).toHaveBeenCalledWith(node); expect(action.handler).toHaveBeenCalledWith(node, documentList);
}); });
@@ -152,7 +152,7 @@ describe('DocumentList', () => {
spyOn(action, 'handler').and.stub(); spyOn(action, 'handler').and.stub();
documentList.executeContentAction(null, action); documentList.executeContentAction(null, action);
expect(action.handler).toHaveBeenCalledWith(null); expect(action.handler).toHaveBeenCalledWith(null, documentList);
}); });
it('should update current folder path', () => { it('should update current folder path', () => {