Skip to content

Commit

Permalink
adding a test just to prove that the bug is fixed. fixes plentz#131
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Plentz committed Mar 2, 2015
1 parent 2cf3e7d commit 75a334f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/mask_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ test("with a negative number as parameter", function() {
input.maskMoney("mask", -123456.78);
equal(input.val(), "-123,456.78", "mask method when trigged with a negative number as parameter correctly formatted input value");
});

test("with a suffix", function() {
var input = $("#input1").maskMoney({suffix: " €"});
input.maskMoney("mask", 20316.22);
equal(input.val(), "20,316.22 €", "");
});

0 comments on commit 75a334f

Please sign in to comment.