validate: function(password) {
if (password.length > 0 && password.length < 10) {
return true;
}
return false;
}
it('An empty string is not a valid password', function() {
assert.equal(
passwordValidation.validate(""),
false);
});
it('A non-empty string is a valid password', () => {
assert.equal(
passwordValidation.validate("A"),
true);
});
validate: function(password) {
if (password.length > 0 && password.length < 10) {
return true;
}
return false;
}
validate: function(password) {
if (password.length > 0 && password.length <= 10) {
return true;
}
return false;
}
Still from Them! (1954) - http://www.imdb.com/title/tt0047573/
Slides and example code: oliwennell.github.io/
Stryker: stryker-mutator.github.io
Have a chat:
Twitter: @owennell