tests_jquery_inputmask.js 431 B

123456789101112
  1. export default function(qunit, $, Inputmask) {
  2. qunit.module("jquery.inputmask plugin");
  3. qunit.test("", function(assert) {
  4. var $fixture = $("#qunit-fixture");
  5. $fixture.append('<input type="text" id="testmask" />');
  6. $("#testmask").inputmask({"mask": "99-9999-99"});
  7. $("#testmask").focus();
  8. assert.equal($("#testmask")[0].inputmask._valueGet(), "__-____-__", "Result " + $("#testmask")[0].inputmask._valueGet());
  9. });
  10. };