Socket
Socket
Sign inDemoInstall

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.3 to 1.1.4

5

lib/adapter-tests.js

@@ -8,4 +8,9 @@ var Factory = require('..').Factory;

* @param countModels A function that returns a count of all Model instances
* @param {Function} [instanceOf] A <tt>function(model, Model)</tt> that returns true if
* <tt>model instanceof Model</tt>
*/
module.exports = function(adapter, Model, countModels, instanceOf) {
instanceOf = instanceOf || function(model, Model) {
return model instanceof Model;
};
var factory = new Factory();

@@ -12,0 +17,0 @@ factory.setAdapter(adapter);

2

package.json

@@ -6,3 +6,3 @@ {

"author": "Simon Wade",
"version": "1.1.3",
"version": "1.1.4",
"keywords": [

@@ -9,0 +9,0 @@ "factory",

@@ -7,3 +7,3 @@ # factory-girl

It started out as a fork of [factory-lady](https://github.com/petejkim/factory-lady), but the fork deviated quite a bit. This module uses an adapter to talk to your models so it can support different ORMs such as [Bookshelf](https://github.com/aexmachina/factory-girl-bookshelf), [Sequelize](https://github.com/aexmachina/factory-girl-sequelize), and [JugglingDB](https://github.com/rehanift/factory-girl-jugglingdb) (and doesn't use `throw` for errors that might occur during save).
It started out as a fork of [factory-lady](https://github.com/petejkim/factory-lady), but the fork deviated quite a bit. This module uses an adapter to talk to your models so it can support different ORMs such as [Bookshelf](https://github.com/aexmachina/factory-girl-bookshelf), [Sequelize](https://github.com/aexmachina/factory-girl-sequelize), [JugglingDB](https://github.com/rehanift/factory-girl-jugglingdb), and [Mongoose](https://github.com/jesseclark/factory-girl-mongoose) (and doesn't use `throw` for errors that might occur during save).

@@ -10,0 +10,0 @@ ## Installation

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