Browse Source
Tests: Properly compare the file action label
Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/11849/head
Julius Härtl
7 years ago
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with
1 additions and
1 deletions
-
apps/files/tests/js/fileactionsmenuSpec.js
|
|
|
@ -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({ |
|
|
|
|