More work on right sidebar unit tests

This commit is contained in:
Vincent Petry 2015-07-17 15:19:11 +02:00 committed by Arthur Schiwon
parent 3e44ca6dc2
commit e0bcd56402
1 changed files with 3 additions and 3 deletions

View File

@ -56,15 +56,15 @@ describe('OCA.Files.MainFileInfoDetailView tests', function() {
}); });
it('displays favorite icon', function() { it('displays favorite icon', function() {
view.setFileInfo(_.extend(testFileInfo, { view.setFileInfo(_.extend(testFileInfo, {
tags: [OC.FAVORITE] tags: [OC.TAG_FAVORITE]
})); }));
expect(OC.TestUtil.getImageUrl(view.$el.find('.favorite img'))) expect(view.$el.find('.favorite img').attr('src'))
.toEqual(OC.imagePath('core', 'actions/starred')); .toEqual(OC.imagePath('core', 'actions/starred'));
view.setFileInfo(_.extend(testFileInfo, { view.setFileInfo(_.extend(testFileInfo, {
tags: [] tags: []
})); }));
expect(OC.TestUtil.getImageUrl(view.$el.find('.favorite img'))) expect(view.$el.find('.favorite img').attr('src'))
.toEqual(OC.imagePath('core', 'actions/star')); .toEqual(OC.imagePath('core', 'actions/star'));
}); });
it('displays mime icon', function() { it('displays mime icon', function() {