alpaca
Version:
Alpaca provides the easiest and fastest way to generate interactive forms for the web and mobile devices. It runs simply as HTML5 or more elaborately using Bootstrap, jQuery Mobile or jQuery UI. Alpaca uses Handlebars to process JSON schema and provide
19 lines (15 loc) • 367 B
JavaScript
feature("Masking an Input", function() {
scenario('Applying a mask to an already masked input',function(){
given("an input with two masks", function(){
input
.mask("9")
.mask("99");
});
when("typing a number",function(){
input.mashKeys("1");
});
then("value should be correct",function(){
expect(input).toHaveValue('1_');
});
});
});