Files
metrics/tests/mocks/api/github/graphql/licenses.repository.mjs
github-actions[bot] d3228a126a chore: code formatting
2022-01-16 01:41:24 +00:00

14 lines
430 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,
},
},
})
}