fix(tests): make mocks for rest octokit async
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**Mocked data */
|
||||
export default function({ faker }, target, that, [{ username: login, page, per_page }]) {
|
||||
export default async function({ faker }, target, that, [{ username: login, page, per_page }]) {
|
||||
console.debug("metrics/compute/mocks > mocking rest api result > rest.activity.listEventsForAuthenticatedUser")
|
||||
return ({
|
||||
status: 200,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import listEventsForAuthenticatedUser from "./listEventsForAuthenticatedUser.mjs"
|
||||
|
||||
/**Mocked data */
|
||||
export default function({ faker }, target, that, [{ username: login, page, per_page }]) {
|
||||
export default async function({ faker }, target, that, [{ username: login, page, per_page }]) {
|
||||
console.debug("metrics/compute/mocks > mocking rest api result > rest.activity.listRepoEvents")
|
||||
return listEventsForAuthenticatedUser(...arguments)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user