Merge pull request #903 from gradido/correct-type-for-balance

fix: Warnings in Gdd Transaction List Spec
This commit is contained in:
Moriz Wahl 2021-09-27 23:08:45 +02:00 committed by GitHub
commit 8548b36a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -54,7 +54,7 @@ describe('GddTransactionList', () => {
await wrapper.setProps({
transactions: [
{
balance: '19.93',
balance: 19.93,
date: '2021-05-25T17:38:13+00:00',
memo: 'Alles Gute zum Geburtstag',
name: 'Bob der Baumeister',
@ -63,7 +63,7 @@ describe('GddTransactionList', () => {
decay: { balance: '0.5' },
},
{
balance: '1000',
balance: 1000,
date: '2021-04-29T15:34:49+00:00',
memo: 'Gut das du da bist!',
name: 'Gradido Akademie',
@ -71,7 +71,7 @@ describe('GddTransactionList', () => {
type: 'creation',
},
{
balance: '314.98',
balance: 314.98,
date: '2021-04-29T17:26:40+00:00',
memo: 'Für das Fahrrad!',
name: 'Jan Ulrich',

View File

@ -1,6 +1,7 @@
import { createLocalVue } from '@vue/test-utils'
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
import Vuex from 'vuex'
import Vue from 'vue'
import { ValidationProvider, ValidationObserver, extend } from 'vee-validate'
import * as rules from 'vee-validate/dist/rules'
@ -47,3 +48,8 @@ global.localVue.component('validation-provider', ValidationProvider)
global.localVue.component('validation-observer', ValidationObserver)
global.localVue.directive('click-outside', clickOutside)
global.localVue.directive('focus', focus)
// throw errors for vue warnings to force the programmers to take care about warnings
Vue.config.warnHandler = (w) => {
throw new Error(w)
}