Add back test accidentally deleted

This commit is contained in:
Matt Rider 2019-07-01 07:29:06 -03:00
parent d6f0698ef7
commit 51a7a0e5d8

View File

@ -144,6 +144,10 @@ describe('ContributionForm.vue', () => {
expect(mocks.$apollo.mutate).toHaveBeenCalledWith(expect.objectContaining(expectedParams))
})
it('sets language equal to contribution language', () => {
expect(wrapper.vm.form.language).toEqual({ value: propsData.contribution.language })
})
it("pushes the user to the post's page", async () => {
expect(mocks.$router.push).toHaveBeenCalledTimes(1)
})