learning how to test

This commit is contained in:
2019-07-12 15:56:16 +02:00
parent caa8d3fad6
commit 5d54d40bec
13 changed files with 2956 additions and 130 deletions

View File

@@ -17,12 +17,10 @@
checkError (ev) {
const newValue = ev.target.value;
this.has_error = isNaN(newValue);
if (!this.has_error) {
this.$emit(
'input',
Number(newValue)
);
}
this.$emit(
'input',
this.has_error ? 0 : Number(newValue)
);
}
},
}