feat(plugins/sponsors): add plugin_sponsors_past (#958) [skip ci]
This commit is contained in:
19
tests/mocks/api/github/graphql/sponsors.all.mjs
Normal file
19
tests/mocks/api/github/graphql/sponsors.all.mjs
Normal file
@@ -0,0 +1,19 @@
|
||||
/**Mocked data */
|
||||
export default function({ faker, query, login = faker.internet.userName() }) {
|
||||
console.debug("metrics/compute/mocks > mocking graphql api result > sponsors/all")
|
||||
return ({
|
||||
user: {
|
||||
sponsorsActivities: {
|
||||
nodes: new Array(10).fill(null).map(_ => ({
|
||||
sponsor: {
|
||||
login: faker.internet.userName(),
|
||||
avatarUrl: null,
|
||||
},
|
||||
sponsorsTier: {
|
||||
monthlyPriceInDollars: faker.datatype.number(10),
|
||||
},
|
||||
})),
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user