Revert change of faker import

This commit is contained in:
Wolfgang Huß 2022-05-02 16:51:51 +02:00
parent 47b88ffb46
commit c0a61600e4
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { v4 as uuid } from 'uuid' import { v4 as uuid } from 'uuid'
import { faker } from '@faker-js/faker' import faker from 'faker'
import slugify from 'slug' import slugify from 'slug'
import { hashSync } from 'bcryptjs' import { hashSync } from 'bcryptjs'
import { Factory } from 'rosie' import { Factory } from 'rosie'
@ -47,6 +47,7 @@ Factory.define('badge')
return neode.create('Badge', buildObject) return neode.create('Badge', buildObject)
}) })
console.log(faker)
Factory.define('image') Factory.define('image')
.attr('url', faker.image.unsplash.imageUrl) .attr('url', faker.image.unsplash.imageUrl)
.attr('aspectRatio', 1.3333333333333333) .attr('aspectRatio', 1.3333333333333333)

View File

@ -1,4 +1,4 @@
import { faker } from '@faker-js/faker' import faker from 'faker'
import sample from 'lodash/sample' import sample from 'lodash/sample'
import { createTestClient } from 'apollo-server-testing' import { createTestClient } from 'apollo-server-testing'
import createServer from '../server' import createServer from '../server'