()
| 7 | var Person = null; |
| 8 | |
| 9 | var setup = function () { |
| 10 | return function (done) { |
| 11 | Person = db.define("person", { |
| 12 | name : String |
| 13 | }); |
| 14 | |
| 15 | return helper.dropSync(Person, function () { |
| 16 | Person.create([{ |
| 17 | id : 1, |
| 18 | name: "Jeremy Doe" |
| 19 | }, { |
| 20 | id : 2, |
| 21 | name: "John Doe" |
| 22 | }, { |
| 23 | id : 3, |
| 24 | name: "Jane Doe" |
| 25 | }], done); |
| 26 | }); |
| 27 | }; |
| 28 | }; |
| 29 | |
| 30 | before(function (done) { |
| 31 | helper.connect(function (connection) { |