UNPKG

jquery.maskedinput2

Version:
17 lines (16 loc) 360 B
beforeEach(function(){ this.addMatchers({ toHaveValue:function(expected){ return (this.actual=this.actual.val())===expected; }, toMatchPropertiesOf:function(expected){ if($.type(expected)!=='object') return false; for(var prop in expected){ if(this.actual[prop]!==expected[prop]) return false; } return true; } }); });