chore: code formatting

This commit is contained in:
github-actions[bot]
2022-06-15 17:53:18 +00:00
parent 9032d357ff
commit 552c2a245f
2 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ export default async function({login, q, imports, graphql, queries, data, accoun
//Fetch pinned repositories //Fetch pinned repositories
if (pinned) { if (pinned) {
const {user:{pinnedItems:{edges}}} = await graphql(queries.repositories.pinned({login, limit:pinned})) const {user: {pinnedItems: {edges}}} = await graphql(queries.repositories.pinned({login, limit: pinned}))
repositories.list.push(...edges.map(({node}) => format(node))) repositories.list.push(...edges.map(({node}) => format(node)))
} }

View File

@@ -2,9 +2,9 @@
export default function({faker, query, login = faker.internet.userName()}) { export default function({faker, query, login = faker.internet.userName()}) {
console.debug("metrics/compute/mocks > mocking graphql api result > repositories/pinned") console.debug("metrics/compute/mocks > mocking graphql api result > repositories/pinned")
return ({ return ({
user:{ user: {
pinnedItems:{ pinnedItems: {
edges:[{ edges: [{
node: { node: {
createdAt: faker.date.past(), createdAt: faker.date.past(),
description: "📊 An image generator with 20+ metrics about your GitHub account such as activity, community, repositories, coding habits, website performances, music played, starred topics, etc. that you can put on your profile or elsewhere !", description: "📊 An image generator with 20+ metrics about your GitHub account such as activity, community, repositories, coding habits, website performances, music played, starred topics, etc. that you can put on your profile or elsewhere !",
@@ -28,8 +28,8 @@ export default function({faker, query, login = faker.internet.userName()}) {
name: "JavaScript", name: "JavaScript",
}, },
}, },
}] }],
} },
} },
}) })
} }