typeof regex implemented inconsistently across browsers...sigh
This commit is contained in:
parent
c7b1fcc806
commit
1f789e5f2b
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue