Skip to content

Instantly share code, notes, and snippets.

@scheibinger
Last active August 29, 2015 14:17
Show Gist options
  • Save scheibinger/f6e172f1102607488e9f to your computer and use it in GitHub Desktop.
Save scheibinger/f6e172f1102607488e9f to your computer and use it in GitHub Desktop.
ogQOjK
describe(‘input widget’, function(){
describe(‘with regex validation’, function(){
describe('when validation is triggered', function(){
[INVALID_VALUE_EX1, INVALID_VALUE_EX2].forEach(function(value){
it("for invalid value: " + value + ' it should display error', function(){
expect($error).to.be.visible;
})
});
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment