tests: move mocks to tests/*
This commit is contained in:
16
tests/mocks/api/github/graphql/base.user.mjs
Normal file
16
tests/mocks/api/github/graphql/base.user.mjs
Normal file
@@ -0,0 +1,16 @@
|
||||
/**Mocked data */
|
||||
export default function({faker, query, login = faker.internet.userName()}) {
|
||||
console.debug("metrics/compute/mocks > mocking graphql api result > base/user")
|
||||
return ({
|
||||
user:{
|
||||
databaseId:faker.datatype.number(10000000),
|
||||
name:faker.name.findName(),
|
||||
login,
|
||||
createdAt:`${faker.date.past(10)}`,
|
||||
avatarUrl:faker.image.people(),
|
||||
websiteUrl:faker.internet.url(),
|
||||
isHireable:faker.datatype.boolean(),
|
||||
twitterUsername:login,
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user