From 51a7a0e5d8b434dfcc9f0c9bba89e17731536adc Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Mon, 1 Jul 2019 07:29:06 -0300 Subject: [PATCH] Add back test accidentally deleted --- webapp/components/ContributionForm/ContributionForm.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/components/ContributionForm/ContributionForm.spec.js b/webapp/components/ContributionForm/ContributionForm.spec.js index caeeafdf6..5fafdf17f 100644 --- a/webapp/components/ContributionForm/ContributionForm.spec.js +++ b/webapp/components/ContributionForm/ContributionForm.spec.js @@ -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) })