typeof regex implemented inconsistently across browsers...sigh

This commit is contained in:
Sarah Mei 2010-12-01 23:08:57 -08:00
parent c7b1fcc806
commit 1f789e5f2b

View file

@ -3,7 +3,7 @@ describe("Validation", function() {
describe("username", function() {
describe("characters", 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();
});
});
});