diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-03-23 17:52:35 +0100 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-03-23 17:53:46 +0100 |
commit | 514ee63826e47229bfd03bdbb740f2dd1eae1d03 (patch) | |
tree | 3f0d96a4402e8aa54c375084cc4c5e6cf546824b /spec/javascripts/blob | |
parent | 6d330015dfdb1979a0773c87c53b84cc86b28a6d (diff) | |
download | gitlab-ce-514ee63826e47229bfd03bdbb740f2dd1eae1d03.tar.gz |
Move some tests from Karma to Jest
Diffstat (limited to 'spec/javascripts/blob')
-rw-r--r-- | spec/javascripts/blob/blob_fork_suggestion_spec.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/spec/javascripts/blob/blob_fork_suggestion_spec.js b/spec/javascripts/blob/blob_fork_suggestion_spec.js deleted file mode 100644 index 9b81b7e6f92..00000000000 --- a/spec/javascripts/blob/blob_fork_suggestion_spec.js +++ /dev/null @@ -1,39 +0,0 @@ -import BlobForkSuggestion from '~/blob/blob_fork_suggestion'; - -describe('BlobForkSuggestion', () => { - let blobForkSuggestion; - - const openButton = document.createElement('div'); - const forkButton = document.createElement('a'); - const cancelButton = document.createElement('div'); - const suggestionSection = document.createElement('div'); - const actionTextPiece = document.createElement('div'); - - beforeEach(() => { - blobForkSuggestion = new BlobForkSuggestion({ - openButtons: openButton, - forkButtons: forkButton, - cancelButtons: cancelButton, - suggestionSections: suggestionSection, - actionTextPieces: actionTextPiece, - }).init(); - }); - - afterEach(() => { - blobForkSuggestion.destroy(); - }); - - it('showSuggestionSection', () => { - blobForkSuggestion.showSuggestionSection('/foo', 'foo'); - - expect(suggestionSection.classList.contains('hidden')).toEqual(false); - expect(forkButton.getAttribute('href')).toEqual('/foo'); - expect(actionTextPiece.textContent).toEqual('foo'); - }); - - it('hideSuggestionSection', () => { - blobForkSuggestion.hideSuggestionSection(); - - expect(suggestionSection.classList.contains('hidden')).toEqual(true); - }); -}); |