Fix unit tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/**Mocked data */
|
/**Mocked data */
|
||||||
export default function({faker, url, options, login = faker.internet.userName()}) {
|
export default function({faker, url, options, login = faker.internet.userName()}) {
|
||||||
//Wakatime api
|
//Wakatime api
|
||||||
if (/^https:..wakatime.com.api.v1.users.current.stats.*$/.test(url)) {
|
if (/^https:..wakatime.com.api.v1.users..*.stats.*$/.test(url)) {
|
||||||
//Get user profile
|
//Get user profile
|
||||||
if (/api_key=MOCKED_TOKEN/.test(url)) {
|
if (/api_key=MOCKED_TOKEN/.test(url)) {
|
||||||
console.debug(`metrics/compute/mocks > mocking wakatime api result > ${url}`)
|
console.debug(`metrics/compute/mocks > mocking wakatime api result > ${url}`)
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ inputs:
|
|||||||
plugin_wakatime_url:
|
plugin_wakatime_url:
|
||||||
description: Address where to reach your Wakatime instance
|
description: Address where to reach your Wakatime instance
|
||||||
type: string
|
type: string
|
||||||
default: http://wakatime.com
|
default: https://wakatime.com
|
||||||
|
|
||||||
# Username on Wakatime
|
# Username on Wakatime
|
||||||
plugin_wakatime_user:
|
plugin_wakatime_user:
|
||||||
|
|||||||
Reference in New Issue
Block a user