From 19330e9debca6915d3ab3e4d5a3931ed30f8f80b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 18 Oct 2017 13:50:58 +0200 Subject: [PATCH] =?utf8?q?kivi.Validator:=20Tests=20auf=20strikteres=20par?= =?utf8?q?se=5Famount=20ge=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/t/kivi/parse_amount.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); }); -- 2.20.1