refactor test from truthy and falsy to true and false

This commit is contained in:
ogerly 2022-06-14 08:11:10 +02:00
parent 5bfcb3a0dd
commit 0e6f6cd363

View File

@ -75,7 +75,7 @@ describe('DeletedUserFormular', () => {
})
it('has a checkbox', () => {
expect(wrapper.find('input[type="checkbox"]').exists()).toBeTruthy()
expect(wrapper.find('input[type="checkbox"]').exists()).toBe(true)
})
it('shows the text "delete_user"', () => {
@ -88,7 +88,7 @@ describe('DeletedUserFormular', () => {
})
it('has a confirmation button', () => {
expect(wrapper.find('button').exists()).toBeTruthy()
expect(wrapper.find('button').exists()).toBe(true)
})
it('has the button text "delete_user"', () => {
@ -146,7 +146,7 @@ describe('DeletedUserFormular', () => {
})
it('has no confirmation button anymore', () => {
expect(wrapper.find('button').exists()).toBeFalsy()
expect(wrapper.find('button').exists()).toBe(false)
})
})
})
@ -163,7 +163,7 @@ describe('DeletedUserFormular', () => {
})
it('has a checkbox', () => {
expect(wrapper.find('input[type="checkbox"]').exists()).toBeTruthy()
expect(wrapper.find('input[type="checkbox"]').exists()).toBe(true)
})
it('shows the text "undelete_user"', () => {
@ -181,7 +181,7 @@ describe('DeletedUserFormular', () => {
})
it('has a confirmation button', () => {
expect(wrapper.find('button').exists()).toBeTruthy()
expect(wrapper.find('button').exists()).toBe(true)
})
it('has the button text "undelete_user"', () => {
@ -239,7 +239,7 @@ describe('DeletedUserFormular', () => {
})
it('has no confirmation button anymore', () => {
expect(wrapper.find('button').exists()).toBeFalsy()
expect(wrapper.find('button').exists()).toBe(false)
})
})
})