Skip to content
Snippets Groups Projects
Commit e0bcd564 authored by Vincent Petry's avatar Vincent Petry Committed by Arthur Schiwon
Browse files

More work on right sidebar unit tests

parent 3e44ca6d
No related branches found
No related tags found
No related merge requests found
......@@ -56,15 +56,15 @@ describe('OCA.Files.MainFileInfoDetailView tests', function() {
});
it('displays favorite icon', function() {
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'));
view.setFileInfo(_.extend(testFileInfo, {
tags: []
}));
expect(OC.TestUtil.getImageUrl(view.$el.find('.favorite img')))
expect(view.$el.find('.favorite img').attr('src'))
.toEqual(OC.imagePath('core', 'actions/star'));
});
it('displays mime icon', function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment