Remove outdated test directly calling method

This commit is contained in:
mattwr18 2019-10-07 19:39:28 +02:00
parent 0d5b334f66
commit c85b2d49b6

View File

@ -25,17 +25,6 @@ describe('TeaserImage.vue', () => {
wrapper = Wrapper()
})
describe('File upload', () => {
const imageUpload = [
{ file: { filename: 'avataar.svg', previewElement: '' }, url: 'someUrlToImage' },
]
it('supports adding a teaser image', () => {
wrapper.vm.addTeaserImage(imageUpload)
expect(wrapper.emitted().addTeaserImage[0]).toEqual(imageUpload)
})
})
describe('handles errors', () => {
beforeEach(() => jest.useFakeTimers())
const message = 'File upload failed'