get skipped test working

This commit is contained in:
Moriz Wahl 2021-12-22 11:48:35 +01:00
parent 509fb41cfc
commit d2e017f7a9
2 changed files with 4 additions and 5 deletions

View File

@ -46,7 +46,7 @@ const mocks = {
}
const propsData = {
creation: [],
creation: [200, 400, 600],
creationUserData: {
memo: 'Test schöpfung 1',
amount: 100,
@ -196,16 +196,16 @@ describe('EditCreationFormular', () => {
describe('third radio button', () => {
beforeEach(async () => {
await wrapper.findAll('input[type="radio"]').at(2).setChecked()
await wrapper.setData({ rangeMin: 180 })
await wrapper.findAll('input[type="radio"]').at(2).setChecked()
})
it('sets rangeMin to 180', () => {
expect(wrapper.vm.rangeMin).toBe(180)
})
it.skip('sets rangeMax to 600', () => {
expect(wrapper.vm.rangeMax).toBe(600)
it('sets rangeMax to 700', () => {
expect(wrapper.vm.rangeMax).toBe(700)
})
describe('sendForm with success', () => {

View File

@ -183,7 +183,6 @@ export default {
updateRadioSelected(name, index, openCreation) {
this.createdIndex = index
this.rangeMin = 0
console.log('this.creation, index', this.creation, index)
this.rangeMax = this.creation[index]
},
submitCreation() {