diff --git a/admin/src/components/ContributionLink.spec.js b/admin/src/components/ContributionLink.spec.js index 66ea20ef9..3fa7c6f4d 100644 --- a/admin/src/components/ContributionLink.spec.js +++ b/admin/src/components/ContributionLink.spec.js @@ -20,7 +20,7 @@ describe('ContributionLink', () => { }) it('renders the Div Element ".contribution-link"', () => { - expect(wrapper.find('div.contribution-link').exists()).toBeTruthy() + expect(wrapper.find('div.contribution-link').exists()).toBe(true) }) it('emits toggle::collapse new Contribution', async () => { diff --git a/admin/src/components/ContributionLinkForm.spec.js b/admin/src/components/ContributionLinkForm.spec.js index 22eff5a70..c15673667 100644 --- a/admin/src/components/ContributionLinkForm.spec.js +++ b/admin/src/components/ContributionLinkForm.spec.js @@ -49,10 +49,10 @@ describe('ContributionLinkForm', () => { amount: null, cycle: 'ONCE', validTo: null, - maxAmountPerMonth: null, + maxAmountPerMonth: 0, memo: null, name: null, - maxPerCycle: null, + maxPerCycle: '1', validFrom: null, }) }) diff --git a/admin/src/components/ContributionLinkList.spec.js b/admin/src/components/ContributionLinkList.spec.js index 2ce5fb542..8b93dab7d 100644 --- a/admin/src/components/ContributionLinkList.spec.js +++ b/admin/src/components/ContributionLinkList.spec.js @@ -44,7 +44,7 @@ describe('ContributionLinkList', () => { }) it('renders the Div Element ".contribution-link-list"', () => { - expect(wrapper.find('div.contribution-link-list').exists()).toBeTruthy() + expect(wrapper.find('div.contribution-link-list').exists()).toBe(true) }) describe('edit contribution link', () => { diff --git a/admin/src/components/Tables/OpenCreationsTable.spec.js b/admin/src/components/Tables/OpenCreationsTable.spec.js index ad28a6fb5..6952288fb 100644 --- a/admin/src/components/Tables/OpenCreationsTable.spec.js +++ b/admin/src/components/Tables/OpenCreationsTable.spec.js @@ -102,7 +102,7 @@ describe('OpenCreationsTable', () => { }) it('has a DIV element with the class .open-creations-table', () => { - expect(wrapper.find('div.open-creations-table').exists()).toBeTruthy() + expect(wrapper.find('div.open-creations-table').exists()).toBe(true) }) it('has a table with three rows', () => { @@ -110,7 +110,7 @@ describe('OpenCreationsTable', () => { }) it('find first button.bi-pencil-square for open EditCreationFormular ', () => { - expect(wrapper.findAll('tr').at(1).find('.bi-pencil-square').exists()).toBeTruthy() + expect(wrapper.findAll('tr').at(1).find('.bi-pencil-square').exists()).toBe(true) }) describe('show edit details', () => { @@ -123,7 +123,7 @@ describe('OpenCreationsTable', () => { }) it.skip('renders the component component-edit-creation-formular', () => { - expect(wrapper.find('div.component-edit-creation-formular').exists()).toBeTruthy() + expect(wrapper.find('div.component-edit-creation-formular').exists()).toBe(true) }) })