From 75a334ff9f6e7d5add70d819ba09ad4bee1f3906 Mon Sep 17 00:00:00 2001 From: Diego Plentz Date: Sun, 1 Mar 2015 23:47:10 -0300 Subject: [PATCH] adding a test just to prove that the bug is fixed. fixes #131 --- test/mask_test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/mask_test.js b/test/mask_test.js index 35a08de..cb628aa 100644 --- a/test/mask_test.js +++ b/test/mask_test.js @@ -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 €", ""); +});