Skip to content
Extraits de code Groupes Projets
Valider 1f789e5f rédigé par Sarah Mei's avatar Sarah Mei
Parcourir les fichiers

typeof regex implemented inconsistently across browsers...sigh

parent c7b1fcc8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -3,7 +3,7 @@ describe("Validation", function() { ...@@ -3,7 +3,7 @@ describe("Validation", function() {
describe("username", function() { describe("username", function() {
describe("characters", function() { describe("characters", function() {
it("is the regex for checking if we allow what the user typed", function() { it("is the regex for checking if we allow what the user typed", function() {
expect(typeof Validation.rules.username.characters).toEqual("function"); expect((typeof Validation.rules.username.characters.test === "function")).toBeTruthy();
}); });
}); });
}); });
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter