chore: update faker functions
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user