diff options
Diffstat (limited to 'spec/frontend/issue_show/store_spec.js')
-rw-r--r-- | spec/frontend/issue_show/store_spec.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/spec/frontend/issue_show/store_spec.js b/spec/frontend/issue_show/store_spec.js deleted file mode 100644 index b7fd70bf00e..00000000000 --- a/spec/frontend/issue_show/store_spec.js +++ /dev/null @@ -1,39 +0,0 @@ -import Store from '~/issue_show/stores'; -import updateDescription from '~/issue_show/utils/update_description'; - -jest.mock('~/issue_show/utils/update_description'); - -describe('Store', () => { - let store; - - beforeEach(() => { - store = new Store({ - descriptionHtml: '<p>This is a description</p>', - }); - }); - - describe('updateState', () => { - beforeEach(() => { - document.body.innerHTML = ` - <div class="detail-page-description content-block"> - <details open> - <summary>One</summary> - </details> - <details> - <summary>Two</summary> - </details> - </div> - `; - }); - - afterEach(() => { - document.getElementsByTagName('html')[0].innerHTML = ''; - }); - - it('calls updateDetailsState', () => { - store.updateState({ description: '' }); - - expect(updateDescription).toHaveBeenCalledTimes(1); - }); - }); -}); |