MCPcopy Create free account
hub / github.com/dresende/node-orm2 / setup

Function setup

test/integration/model-countAsync.js:8–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

createMethod · 0.80

Tested by

no test coverage detected