fix(plugin/achievements): use graphql first for initial setup and fix regex (#1532)
This commit is contained in:
9
tests/mocks/api/github/graphql/achievements.total.mjs
Normal file
9
tests/mocks/api/github/graphql/achievements.total.mjs
Normal file
@@ -0,0 +1,9 @@
|
||||
/**Mocked data */
|
||||
export default function({faker, query, login = faker.internet.userName()}) {
|
||||
console.debug("metrics/compute/mocks > mocking graphql api result > achievements/total")
|
||||
return ({
|
||||
repositories: {count: faker.number.int(100000)},
|
||||
issues: {count: faker.number.int(100000)},
|
||||
users: {count: faker.number.int(100000)},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user