diff options
Diffstat (limited to 'spec/frontend/awards_handler_spec.js')
-rw-r--r-- | spec/frontend/awards_handler_spec.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/frontend/awards_handler_spec.js b/spec/frontend/awards_handler_spec.js index 7fd6a9e7b87..c6a9c911ccf 100644 --- a/spec/frontend/awards_handler_spec.js +++ b/spec/frontend/awards_handler_spec.js @@ -169,29 +169,6 @@ describe('AwardsHandler', () => { }); }); - describe('::userAuthored', () => { - it('should update tooltip to user authored title', () => { - const $votesBlock = $('.js-awards-block').eq(0); - const $thumbsUpEmoji = $votesBlock.find('[data-name=thumbsup]').parent(); - $thumbsUpEmoji.attr('data-title', 'sam'); - awardsHandler.userAuthored($thumbsUpEmoji); - - expect($thumbsUpEmoji.data('originalTitle')).toBe( - 'You cannot vote on your own issue, MR and note', - ); - }); - - it('should restore tooltip back to initial vote list', () => { - const $votesBlock = $('.js-awards-block').eq(0); - const $thumbsUpEmoji = $votesBlock.find('[data-name=thumbsup]').parent(); - $thumbsUpEmoji.attr('data-title', 'sam'); - awardsHandler.userAuthored($thumbsUpEmoji); - jest.advanceTimersByTime(2801); - - expect($thumbsUpEmoji.data('originalTitle')).toBe('sam'); - }); - }); - describe('::getAwardUrl', () => { it('returns the url for request', () => { expect(awardsHandler.getAwardUrl()).toBe('http://test.host/-/snippets/1/toggle_award_emoji'); |