remove empty specs
This commit is contained in:
parent
5d31a24e9e
commit
f81dc0fed6
1 changed files with 4 additions and 6 deletions
|
|
@ -1,17 +1,15 @@
|
||||||
describe("Validation", function() {
|
describe("Validation", function() {
|
||||||
describe("rules", function() {
|
describe("rules", function() {
|
||||||
it("contains all the rules for validation");
|
|
||||||
|
|
||||||
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");
|
it("is the regex for checking if we allow what the user typed", function() {
|
||||||
|
expect(typeof Validation.rules.username.characters).toEqual("function");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe("events", function() {
|
describe("events", function() {
|
||||||
it("contains all the events that use validation methods");
|
|
||||||
describe("usernameKeypress", function() {
|
describe("usernameKeypress", function() {
|
||||||
|
|
||||||
it("doesn't allow the user to type anything but letters, numbers and underscores", function() {
|
it("doesn't allow the user to type anything but letters, numbers and underscores", function() {
|
||||||
expect(Validation.rules.username.characters.test("*")).toBeFalsy();
|
expect(Validation.rules.username.characters.test("*")).toBeFalsy();
|
||||||
expect(Validation.rules.username.characters.test("Aa_")).toBeTruthy();
|
expect(Validation.rules.username.characters.test("Aa_")).toBeTruthy();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue