Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

factory-girl

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factory-girl - npm Package Compare versions

Comparing version 1.1.4 to 1.2.0

2

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc