Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Apr 28, 2021
1 parent 98221fd commit a27a1ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/app/mocks/api/axios/get/wakatime.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**Mocked data */
export default function({faker, url, options, login = faker.internet.userName()}) {
//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
if (/api_key=MOCKED_TOKEN/.test(url)) {
console.debug(`metrics/compute/mocks > mocking wakatime api result > ${url}`)
Expand Down
2 changes: 1 addition & 1 deletion source/plugins/wakatime/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ inputs:
plugin_wakatime_url:
description: Address where to reach your Wakatime instance
type: string
default: http://wakatime.com
default: https://wakatime.com

# Username on Wakatime
plugin_wakatime_user:
Expand Down

0 comments on commit a27a1ae

Please sign in to comment.