Skip to content

Commit 6dcee84

Browse files
committed
chore: update readme
1 parent 2f6d4fd commit 6dcee84

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

README.md

+21-3
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,38 @@ end
4747
And then using it in your tests as:
4848

4949
```elixir
50-
# For getting a default parameter map.
50+
# For getting a default parameter struct.
5151
FactoryEx.build(MyFactory)
5252

53-
# For getting a default parameter map with a modification.
53+
# For getting a default parameter struct with a modification.
5454
FactoryEx.build(MyFactory, foo: 42)
5555

56-
# For getting a default parameter map and not validating the changeset
56+
# For getting a default parameter struct and not validating the changeset
5757
FactoryEx.build(MyFactory, [foo: 42], validate?: false)
5858

59+
# For getting a default parameter map.
60+
FactoryEx.build_params(MyFactory)
61+
62+
# For getting a default parameter map with a modification..
63+
FactoryEx.build_params(MyFactory, foo: 10)
64+
65+
# For getting a default parameter map and not validating the changeset
66+
FactoryEx.build_params(MyFactory, foo: 10, validate?: false)
67+
68+
# For getting multiple default parameter maps
69+
FactoryEx.build_many_params(MyFactory, [foo: 42])
70+
71+
# For getting an invalid parameter maps
72+
FactoryEx.build_invalid_params(MyFactory, [foo: 42])
73+
5974
# For inserting a default schema.
6075
FactoryEx.insert!(MyFactory)
6176

6277
# For inserting a default schema with a modification.
6378
FactoryEx.insert!(MyFactory, foo: 42)
79+
80+
# For inserting multiple default schema
81+
FactoryEx.insert_many!(10, MyFactory, foo: 42)
6482
```
6583

6684
### Using FactoryEx.SchemaCounter

0 commit comments

Comments
 (0)