fix bug comma
This commit is contained in:
17
wwwroot/BackendScript/js/jquery-maskmoney-master/test/empty_test.js
vendored
Normal file
17
wwwroot/BackendScript/js/jquery-maskmoney-master/test/empty_test.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
module("empty");
|
||||
test("allow empty inputs", function() {
|
||||
var input = $("#input1").maskMoney({ precision: 2, allowEmpty: true });
|
||||
input.val("");
|
||||
input.trigger("focus");
|
||||
equal(input.val(), "", "allow empty inputs");
|
||||
});
|
||||
|
||||
test("don't allow empty inputs", function() {
|
||||
var input = $("#input1").maskMoney({ precision: 2, allowEmpty: false });
|
||||
input.val("");
|
||||
input.trigger("focus");
|
||||
equal(input.val(), "0.00", "don't allow empty inputs");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user