aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-02-25 17:48:58 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-02-25 23:01:09 +0100
commit867a8aca1294f5dc0778148460a91bbbe28ba433 (patch)
tree5a976f7da6dcf1006be82e3cd1bc5f7e6635fb19 /apps/files
parentb634f1e2c70809a4fde7f738cb7c252b6fc3f4dc (diff)
downloadnextcloud-server-867a8aca1294f5dc0778148460a91bbbe28ba433.tar.gz
nextcloud-server-867a8aca1294f5dc0778148460a91bbbe28ba433.zip
Fix favorite icon unit test for icon image
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/tests/js/tagspluginspec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/tests/js/tagspluginspec.js b/apps/files/tests/js/tagspluginspec.js
index 533aa63362c..a4efc08aa53 100644
--- a/apps/files/tests/js/tagspluginspec.js
+++ b/apps/files/tests/js/tagspluginspec.js
@@ -99,7 +99,8 @@ describe('OCA.Files.TagsPlugin tests', function() {
expect($tr.attr('data-favorite')).toEqual('true');
expect($tr.attr('data-tags').split('|')).toEqual(['tag1', 'tag2', 'tag3', OC.TAG_FAVORITE]);
expect(fileList.files[0].tags).toEqual(['tag1', 'tag2', 'tag3', OC.TAG_FAVORITE]);
- expect($action.find('img').attr('src')).toEqual(OC.imagePath('core', 'actions/starred'));
+ expect($action.find('.icon').hasClass('icon-star')).toEqual(false);
+ expect($action.find('.icon').hasClass('icon-starred')).toEqual(true);
$action.click();
@@ -119,7 +120,8 @@ describe('OCA.Files.TagsPlugin tests', function() {
expect($tr.attr('data-favorite')).toBeFalsy();
expect($tr.attr('data-tags').split('|')).toEqual(['tag1', 'tag2', 'tag3']);
expect(fileList.files[0].tags).toEqual(['tag1', 'tag2', 'tag3']);
- expect($action.find('img').attr('src')).toEqual(OC.imagePath('core', 'actions/star'));
+ expect($action.find('.icon').hasClass('icon-star')).toEqual(true);
+ expect($action.find('.icon').hasClass('icon-starred')).toEqual(false);
});
});
describe('elementToFile', function() {