Feat notable options (#240)

This commit is contained in:
Simon Lecoq
2021-04-18 20:19:39 +02:00
committed by GitHub
parent cbd119215e
commit 32b61f0b70
8 changed files with 67 additions and 36 deletions

View File

@@ -19,6 +19,10 @@
login:faker.internet.userName(),
avatarUrl:null,
},
nameWithOwner:`${faker.internet.userName()}/${faker.lorem.slug()}`,
stargazers:{totalCount:faker.datatype.number(1000)},
watchers:{totalCount:faker.datatype.number(1000)},
forks:{totalCount:faker.datatype.number(1000)},
},
},
],

View File

@@ -1,14 +0,0 @@
/**Mocked data */
export default function({faker, query, login = faker.internet.userName()}) {
console.debug("metrics/compute/mocks > mocking graphql api result > notable/organizations")
return ({
user:{
organizations:{
nodes:[{
login:faker.internet.userName(),
avatarUrl:null,
}],
},
},
})
}