Skip to content

Commit

Permalink
Don't write error message on passing ReadmeContentModal.spec.js test (#…
Browse files Browse the repository at this point in the history
…6525)

* mock console.error

* Add changelog item

* Update changelog item
  • Loading branch information
Jan authored Mar 4, 2022
1 parent fbbb654 commit 6def72e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Don't write error message on passing ReadmeContentModal.spec.js test

ReadmeContentModal.spec.js test doesn't write error output anymore while passing

https://github.com/owncloud/web/pull/6525
https://github.com/owncloud/web/issues/6337
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('editReadmeContent', () => {
})

it('should show message on error', async () => {
jest.spyOn(console, 'error').mockImplementation(() => {})
const wrapper = getWrapper(false)
const showMessageStub = jest.spyOn(wrapper.vm, 'showMessage')
await wrapper.vm.editReadme()
Expand Down

0 comments on commit 6def72e

Please sign in to comment.