File tree 7 files changed +8
-8
lines changed
7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ var Factory = require('rosie').Factory;
211
211
var faker = require (' @faker-js/faker' );
212
212
213
213
module .exports = new Factory ()
214
- .attr (' name' , () => faker .name .findName ())
214
+ .attr (' name' , () => faker .person .findName ())
215
215
.attr (' email' , () => faker .internet .email ());
216
216
```
217
217
@@ -271,7 +271,7 @@ module.exports = new Factory((buildObj) => {
271
271
input: { ... buildObj },
272
272
}
273
273
})
274
- .attr (' name' , () => faker .name .findName ())
274
+ .attr (' name' , () => faker .person .findName ())
275
275
.attr (' email' , () => faker .internet .email ());
276
276
```
277
277
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const { faker } = require('@faker-js/faker');
58
58
59
59
module .exports = new Factory ()
60
60
// no need to set id, it will be set by REST API
61
- .attr (' author' , () => faker .name .findName ())
61
+ .attr (' author' , () => faker .person .findName ())
62
62
.attr (' title' , () => faker .lorem .sentence ())
63
63
.attr (' body' , () => faker .lorem .paragraph ());
64
64
```
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ module.exports = new Factory((buildObj) => ({
62
62
input: { ... buildObj },
63
63
}))
64
64
// 'attr'-id can be left out depending on the GraphQl resolvers
65
- .attr (' name' , () => faker .name .findName ())
65
+ .attr (' name' , () => faker .person .findName ())
66
66
.attr (' email' , () => faker .interact .email ())
67
67
```
68
68
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const REST = require('./REST')
51
51
*
52
52
* module.exports = new Factory()
53
53
* // no need to set id, it will be set by REST API
54
- * .attr('author', () => faker.name .findName())
54
+ * .attr('author', () => faker.person .findName())
55
55
* .attr('title', () => faker.lorem.sentence())
56
56
* .attr('body', () => faker.lorem.paragraph());
57
57
* ```
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ const GraphQL = require('./GraphQL')
55
55
* input: { ...buildObj },
56
56
* }))
57
57
* // 'attr'-id can be left out depending on the GraphQl resolvers
58
- * .attr('name', () => faker.name .findName())
58
+ * .attr('name', () => faker.person .findName())
59
59
* .attr('email', () => faker.interact.email())
60
60
* ```
61
61
* For more options see [rosie documentation](https://github.com/rosiejs/rosie).
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ const { faker } = require('@faker-js/faker');
4
4
module . exports = new Factory ( function ( buildObject ) {
5
5
this . input = { ...buildObject } ;
6
6
} )
7
- . attr ( 'name' , ( ) => faker . name . fullName ( ) )
7
+ . attr ( 'name' , ( ) => faker . person . fullName ( ) )
8
8
. attr ( 'email' , ( ) => faker . internet . email ( ) ) ;
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ const { Factory } = require('rosie');
2
2
const { faker } = require ( '@faker-js/faker' ) ;
3
3
4
4
module . exports = new Factory ( )
5
- . attr ( 'author' , ( ) => faker . name . fullName ( ) )
5
+ . attr ( 'author' , ( ) => faker . person . fullName ( ) )
6
6
. attr ( 'title' , ( ) => faker . lorem . sentence ( ) )
7
7
. attr ( 'body' , ( ) => faker . lorem . paragraph ( ) ) ;
You can’t perform that action at this time.
0 commit comments