From a767caca53bc83bf8fa1d8e778c3e7e3f6b69353 Mon Sep 17 00:00:00 2001 From: Diego Plentz Date: Mon, 2 Mar 2015 00:54:20 -0300 Subject: [PATCH] just quick improvements to the tests --- test/mask_test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/mask_test.js b/test/mask_test.js index cb628aa..48945f0 100644 --- a/test/mask_test.js +++ b/test/mask_test.js @@ -38,24 +38,24 @@ test("with negative symbol and a field that doesn't allow negative ", function() test("with a number as parameter", function() { var input = $("#input1").maskMoney(); - input.maskMoney("mask", 123456.78); - equal(input.val(), "123,456.78", "mask method when trigged with a number as parameter correctly formatted input value"); + input.maskMoney("mask", 123456.70); + equal(input.val(), "123,456.70"); }); test("with a number as parameter", function() { var input = $("#input1").maskMoney({ precision: 0 }); input.maskMoney("mask", 1000); - equal(input.val(), "1,000", "mask method when trigged with a number as parameter correctly formatted input value"); + equal(input.val(), "1,000"); }); test("with a negative number as parameter", function() { var input = $("#input1").maskMoney({allowNegative: true}); 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"); + equal(input.val(), "-123,456.78"); }); test("with a suffix", function() { var input = $("#input1").maskMoney({suffix: " €"}); input.maskMoney("mask", 20316.22); - equal(input.val(), "20,316.22 €", ""); + equal(input.val(), "20,316.22 €"); });