Rename search outputs after feedback from @DenysVuyka

Refs #371
This commit is contained in:
Will Abson
2016-10-31 16:36:20 +00:00
parent 3f440215b9
commit c100412538
9 changed files with 63 additions and 66 deletions

View File

@@ -338,12 +338,12 @@ describe('AlfrescoSearchControlComponent', () => {
describe('file preview', () => {
it('should emit a preview event when onFileClicked is called', () => {
spyOn(component.preview, 'emit');
it('should emit a file select event when onFileClicked is called', () => {
spyOn(component.fileSelect, 'emit');
component.onFileClicked({
value: 'node12345'
});
expect(component.preview.emit).toHaveBeenCalledWith({
expect(component.fileSelect.emit).toHaveBeenCalledWith({
'value': 'node12345'
});
});