From: Sven Schöling Date: Wed, 18 Oct 2017 11:50:58 +0000 (+0200) Subject: kivi.Validator: Tests auf strikteres parse_amount geändert X-Git-Tag: release-3.5.4~675 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=19330e9debca6915d3ab3e4d5a3931ed30f8f80b;p=kivitendo-erp.git kivi.Validator: Tests auf strikteres parse_amount geändert --- diff --git a/js/t/kivi/parse_amount.js b/js/t/kivi/parse_amount.js index 1c267c440..8df776736 100644 --- a/js/t/kivi/parse_amount.js +++ b/js/t/kivi/parse_amount.js @@ -113,11 +113,11 @@ QUnit.test("kivi.parse_amount function numbers with leading 0 should still be pa 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'); + assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), undefined, 'iuh !@#$% 10,00'); }); QUnit.test("kivi.parse_amount function German number style with thousand separator & invalid math expression", function( assert ) { kivi.setup_formats({ numbers: '1.000,00' }); - assert.equal(kivi.parse_amount('54--42'), 0, '54--42'); + assert.equal(kivi.parse_amount('54--42'), undefined, '54--42'); });