feat(plugins/sponsorships): add plugin (#1358)
This commit is contained in:
12
tests/mocks/api/github/graphql/sponsorships.default.mjs
Normal file
12
tests/mocks/api/github/graphql/sponsorships.default.mjs
Normal 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()}`}]
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user