factory-girl
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -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); |
@@ -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
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
102834
675