factory-girl
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -287,3 +287,3 @@ (function() { | ||
else { | ||
callback && callback(); | ||
callback && setImmediate(callback); | ||
} | ||
@@ -290,0 +290,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"author": "Simon Wade", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"keywords": [ | ||
@@ -9,0 +9,0 @@ "factory", |
@@ -41,3 +41,3 @@ # factory-girl | ||
}); | ||
console.log(factory.build('user')); => {state: 'active', email: 'user1@demo.com', async: 'foo'} | ||
console.log(factory.build('user')); // => {state: 'active', email: 'user1@demo.com', async: 'foo'} | ||
@@ -54,3 +54,3 @@ factory.define('post', Post, { | ||
}); | ||
console.log(factory.build('post')); => {user_id: 1, subject: 'Hello World', slug: 'hello-world'} | ||
console.log(factory.build('post')); // => {user_id: 1, subject: 'Hello World', slug: 'hello-world'} | ||
``` | ||
@@ -57,0 +57,0 @@ |
@@ -241,2 +241,10 @@ /* global describe, beforeEach, afterEach */ | ||
}); | ||
it("allows the creation of many objects", function(done) { | ||
factory.createMany('job', 1000, function (err, jobs) { | ||
if (err) return done(err); | ||
jobs.length.should.eql(1000); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
@@ -243,0 +251,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102942
682