feat(plugins/sponsorships): add plugin (#1358)

This commit is contained in:
Simon Lecoq
2023-01-16 22:28:33 -05:00
committed by GitHub
parent cdf2c03b2a
commit 220deb05e3
13 changed files with 268 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/**Mocked data */
export default function({faker, query, login = faker.internet.userName()}) {
console.debug("metrics/compute/mocks > mocking graphql api result > sponsorships/default")
return ({
user: {
totalSponsorshipAmountAsSponsorInCents:faker.datatype.number(100000),
sponsorshipsAsSponsor:{
nodes:[{createdAt: `${faker.date.recent()}`}]
}
},
})
}