factory-girl-ts
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "factory-girl-ts", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A factory library to help creating test data", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -77,3 +77,3 @@ [](https://github.com/thiagomini/factory-girl-ts/actions/workflows/node.js.yml) | ||
}); | ||
const userFactory = new FactoryGirl(User, defaultAttributesFactory); | ||
const userFactory = FactoryGirl.define(User, defaultAttributesFactory); | ||
@@ -119,3 +119,3 @@ // Step 3: Use the factory to create instances of the model. | ||
}); | ||
const userFactory = new FactoryGirl(User, defaultAttributesFactory); | ||
const userFactory = FactoryGirl.define(User, defaultAttributesFactory); | ||
@@ -176,3 +176,3 @@ // 3. Create multiple instances of the model. | ||
}); | ||
const userFactory = new FactoryGirl(User, defaultAttributesFactory); | ||
const userFactory = FactoryGirl.define(User, defaultAttributesFactory); | ||
@@ -179,0 +179,0 @@ // Step 3: Use the factory to create instances of the model. |
156813