fix(tests): make mocks for rest octokit async

This commit is contained in:
lowlighter
2022-04-23 16:31:22 -04:00
parent 0d25379ff4
commit e9f9bcc678
12 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/**Mocked data */
export default function({ faker }, target, that, [{ username }]) {
export default async function({ faker }, target, that, [{ username }]) {
console.debug("metrics/compute/mocks > mocking rest api result > rest.repos.getByUsername")
return ({
status: 200,

View File

@@ -1,5 +1,5 @@
/**Mocked data */
export default function({ faker }, target, that, [{ username }]) {
export default async function({ faker }, target, that, [{ username }]) {
console.debug("metrics/compute/mocks > mocking rest api result > rest.users.listGpgKeysForUser")
return ({
status: 200,