Files
metrics/tests/mocks/api/github/graphql/licenses.repository.mjs
github-actions[bot] 4c98629bbc chore: code formatting
2022-04-23 23:18:43 +00:00

14 lines
426 B
JavaScript

/**Mocked data */
export default function({faker, query, login = faker.internet.userName()}) {
console.debug("metrics/compute/mocks > mocking graphql api result > licenses/repository")
return ({
user: {
repository: {
licenseInfo: {spdxId: "MIT", name: "MIT License", nickname: null, key: "mit"},
url: "https://github.com/lowlighter/metrics",
databaseId: 293860197,
},
},
})
}