Skip to content

Commit

Permalink
Minor code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jvillafanez committed Dec 19, 2019
1 parent 289f302 commit 826d8f8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
12 changes: 6 additions & 6 deletions apps/files/tests/js/filelistSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1034,14 +1034,14 @@ describe('OCA.Files.FileList tests', function() {
}]
}
});
fileList.setFiles(testFiles)
expect($('#fileList tr:first-of-type td .sharetree-item').length).toEqual(1)
fileList.setFiles(testFiles);
expect($('#fileList tr:first-of-type td .sharetree-item').length).toEqual(1);
});
it('does not show shareTree items if shareTree is empty', function() {
fileList._purgeShareTreeCache()
fileList.setFiles(testFiles)
expect($('#fileList tr td .sharetree-item').length).toEqual(0)
})
fileList._purgeShareTreeCache();
fileList.setFiles(testFiles);
expect($('#fileList tr td .sharetree-item').length).toEqual(0);
});
});
describe('Filtered list rendering', function() {
it('filters the list of files using filter()', function() {
Expand Down
3 changes: 1 addition & 2 deletions apps/files_sharing/css/sharetabview.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@
display: flex;
justify-content: flex-start;
align-items: center;

padding-top: 5px;
padding-bottom: 5px;
padding-bottom: 5px;
}

.shareTree-item * {
Expand Down
14 changes: 7 additions & 7 deletions core/js/tests/specs/sharedialogviewSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ describe('OC.Share.ShareDialogView', function() {
});
it('creates link share view only after selecting tab', function() {
expect(dialog.$('.linkListView').is(':empty')).toEqual(true);

dialog.$('.subTabHeaders>.subTabHeader:eq(1)').click();

expect(dialog.$('.linkListView').is(':empty')).toEqual(false);
Expand Down Expand Up @@ -1001,18 +1001,18 @@ describe('OC.Share.ShareDialogView', function() {
}]
}
});
})
});
afterEach(function() {
fileList.destroy();
$('#filelist').remove()
$('#filelist').remove();
});
it('renders parent user/groups shares', function() {
fileList._setShareTreeUserGroupView()
fileList._setShareTreeUserGroupView();
expect(dialog.$el.find('#shareTreeUserGroupList li').length).toEqual(4);
})
});
it('renders parent link shares', function() {
fileList._setShareTreeLinkView()
fileList._setShareTreeLinkView();
expect(dialog.$el.find('#shareTreeLinkList li').length).toEqual(2);
})
});
});
});

0 comments on commit 826d8f8

Please sign in to comment.