tests: move mocks to tests/*
This commit is contained in:
8
tests/mocks/api/github/graphql/achievements.metrics.mjs
Normal file
8
tests/mocks/api/github/graphql/achievements.metrics.mjs
Normal file
@@ -0,0 +1,8 @@
|
||||
/**Mocked data */
|
||||
export default function({faker, query, login = faker.internet.userName()}) {
|
||||
console.debug("metrics/compute/mocks > mocking graphql api result > achievements/metrics")
|
||||
return ({
|
||||
repository:{viewerHasStarred:faker.datatype.boolean()},
|
||||
viewer:{login},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user