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

Commit 7118267a by sdepold

removed comments

1 parent f47f1899
Showing with 5 additions and 17 deletions
...@@ -9,8 +9,6 @@ describe('ModelFactory', function() { ...@@ -9,8 +9,6 @@ describe('ModelFactory', function() {
var User = sequelize.define('User', { age: Sequelize.INTEGER, name: Sequelize.STRING, bio: Sequelize.TEXT }) var User = sequelize.define('User', { age: Sequelize.INTEGER, name: Sequelize.STRING, bio: Sequelize.TEXT })
//////////// constructor ////////
describe('constructor', function() { describe('constructor', function() {
it("handles extended attributes (unique)", function() { it("handles extended attributes (unique)", function() {
var User = sequelize.define('User' + config.rand(), { var User = sequelize.define('User' + config.rand(), {
...@@ -102,9 +100,7 @@ describe('ModelFactory', function() { ...@@ -102,9 +100,7 @@ describe('ModelFactory', function() {
}) })
}) })
//////////// find ////////////// describe('find', function() {
describe('.find', function() {
beforeEach(function() { beforeEach(function() {
Helpers.Factories.User({name: 'user', bio: 'foobar'}, null, 2) Helpers.Factories.User({name: 'user', bio: 'foobar'}, null, 2)
}) })
...@@ -119,9 +115,7 @@ describe('ModelFactory', function() { ...@@ -119,9 +115,7 @@ describe('ModelFactory', function() {
}) })
}) })
//////////// all ////////////// describe('all', function() {
describe('.all', function() {
beforeEach(function() { beforeEach(function() {
Helpers.Factories.User({name: 'user', bio: 'foobar'}, null, 2) Helpers.Factories.User({name: 'user', bio: 'foobar'}, null, 2)
}) })
...@@ -136,9 +130,7 @@ describe('ModelFactory', function() { ...@@ -136,9 +130,7 @@ describe('ModelFactory', function() {
}) })
}) })
/////////// create //////////// describe('create with options', function() {
describe('.create with options', function() {
var Person = sequelize.define('Person', { name: Sequelize.STRING, options: Sequelize.TEXT }) var Person = sequelize.define('Person', { name: Sequelize.STRING, options: Sequelize.TEXT })
it('should allow the creation of an object with options as attribute', function() { it('should allow the creation of an object with options as attribute', function() {
...@@ -149,9 +141,7 @@ describe('ModelFactory', function() { ...@@ -149,9 +141,7 @@ describe('ModelFactory', function() {
}) })
}) })
//////////// min ////////////// describe('min', function() {
describe('.min', function() {
it("should return the min value", function() { it("should return the min value", function() {
for(var i = 2; i < 5; i++) Helpers.Factories.User({ age: i }) for(var i = 2; i < 5; i++) Helpers.Factories.User({ age: i })
...@@ -163,9 +153,7 @@ describe('ModelFactory', function() { ...@@ -163,9 +153,7 @@ describe('ModelFactory', function() {
}) })
}) })
//////////// max ////////////// describe('max', function() {
describe('.max', function() {
it("should return the max value", function() { it("should return the max value", function() {
for(var i = 2; i <= 5; i++) Helpers.Factories.User({ age: i }) for(var i = 2; i <= 5; i++) Helpers.Factories.User({ age: i })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!