Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 19330e9d

Von Sven Schöling vor mehr als 6 Jahren hinzugefügt

  • ID 19330e9debca6915d3ab3e4d5a3931ed30f8f80b
  • Vorgänger 419facb2
  • Nachfolger fd7a37bf

kivi.Validator: Tests auf strikteres parse_amount geändert

Unterschiede anzeigen:

js/t/kivi/parse_amount.js
113 113
QUnit.test("kivi.parse_amount function German number style with thousand separator & contains invalid characters", function( assert ) {
114 114
  kivi.setup_formats({ numbers: '1.000,00' });
115 115

  
116
  assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), 0, 'iuh !@#$% 10,00');
116
  assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), undefined, 'iuh !@#$% 10,00');
117 117
});
118 118

  
119 119
QUnit.test("kivi.parse_amount function German number style with thousand separator & invalid math expression", function( assert ) {
120 120
  kivi.setup_formats({ numbers: '1.000,00' });
121 121

  
122
  assert.equal(kivi.parse_amount('54--42'), 0, '54--42');
122
  assert.equal(kivi.parse_amount('54--42'), undefined, '54--42');
123 123
});

Auch abrufbar als: Unified diff