Files
spota-dev/assets/plugins/jquery.maskedinput/spec/Paste.Spec.js
Power BI Dev a52c2a8462 Add frontend assets and plugin bundles
Add the legacy frontend themes, scripts, and plugin assets required by the main SPOTA interfaces.
2026-05-02 10:09:32 +07:00

16 lines
434 B
JavaScript

feature("Pasting", function() {
scenario('When pasting a value',function(){
var completed=false;
given("an input with a completed callback", function(){
input.mask("99",{completed:function(){completed=true;}});
});
when("pasting",function(){
input.val("99").trigger("paste").trigger("input");
});
waits(1);
then("completed callback should be called",function(){
expect(completed).toBeTruthy();
});
});
});