chore: update faker functions

This commit is contained in:
Simon Lecoq
2023-07-24 20:30:19 -04:00
parent fca0e34e9d
commit 0fad2fb0cb
53 changed files with 622 additions and 622 deletions

View File

@@ -1,8 +1,8 @@
/**Mocked data */
export default async function({faker}, target, that, [{owner, repo}]) {
console.debug("metrics/compute/mocks > mocking rest api result > rest.repos.getViews")
const count = faker.datatype.number(10000) * 2
const uniques = faker.datatype.number(count) * 2
const count = faker.number.int(10000) * 2
const uniques = faker.number.int(count) * 2
return ({
status: 200,
url: `https://api.github.com/repos/${owner}/${repo}/traffic/views`,