]> wagnertech.de Git - mfinanz.git/blobdiff - js/t/kivi/parse_amount.js
kivi.parse_amount: bei ungültigen Zeichen 0 zurückgeben
[mfinanz.git] / js / t / kivi / parse_amount.js
index 9b7d2aa074e498e96be44d98c8fd278b1d4edeb8..1ef2b119350e212612f05039f4361be5c8733d93 100644 (file)
@@ -109,3 +109,9 @@ QUnit.test("kivi.parse_amount function numbers with leading 0 should still be pa
   assert.equal(kivi.parse_amount('0123456789'),   123456789, '0123456789');
   assert.equal(kivi.parse_amount('000123456789'), 123456789, '000123456789');
 });
+
+QUnit.test("kivi.parse_amount function German number style with thousand separator & contains invalid characters", function( assert ) {
+  kivi.setup_formats({ numbers: '1.000,00' });
+
+  assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), 0, 'iuh !@#$% 10,00');
+});