Tests: Properly compare the file action label
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
a1b7449202
commit
c316eb6b97
|
@ -203,7 +203,7 @@ describe('OCA.Files.FileActionsMenu tests', function() {
|
|||
|
||||
expect(displayNameStub.calledOnce).toEqual(true);
|
||||
expect(displayNameStub.calledWith(menuContext)).toEqual(true);
|
||||
expect(menu.$el.find('a[data-action=Something]').text()).toEqual('Test');
|
||||
expect(menu.$el.find('a[data-action=Something] span:not(.icon)').text()).toEqual('Test');
|
||||
});
|
||||
it('uses plain iconClass', function() {
|
||||
fileActions.registerAction({
|
||||
|
|
Loading…
Reference in New Issue