不要怂,就是干,撸起袖子干!

Commit 7257eece by sdepold

Merge branch 'master' of github.com:sdepold/sequelize

2 parents 76b8c534 d176e4ff
Showing with 5 additions and 5 deletions
......@@ -9,7 +9,7 @@
"dependencies": {
"mysql": "=0.9.4",
"underscore": "=1.2.1",
"underscore.string": "=1.2.0",
"underscore.string": "=2.0.0",
"lingo": "=0.0.4",
"validator": "=0.3.5",
"moment": "=1.1.1"
......
......@@ -7,12 +7,12 @@ describe('Model', function() {
describe('Validations', function() {
var checks = {
is : {
spec : { args: [/[a-z]/,'i'] },
spec : { args: ["[a-z]",'i'] },
fail: "0",
pass: "a"
}
, not : {
spec: { args: [/[a-z]/,'i'] },
spec: { args: ["[a-z]",'i'] },
fail: "a",
pass: "0"
}
......@@ -88,12 +88,12 @@ describe('Model', function() {
pass: "la"
}
, regex : {
spec : { args: [/[a-z]/,'i'] },
spec : { args: ["[a-z]",'i'] },
fail: "0",
pass: "a"
}
, notRegex : {
spec: { args: [/[a-z]/,'i'] },
spec: { args: ["[a-z]",'i'] },
fail: "a",
pass: "0"
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!