Check if projects/languages/OSes/editors are present in Wakatime response (#393)

This commit is contained in:
cherryblossom000
2021-06-17 21:56:01 +10:00
committed by GitHub
parent a77f699111
commit 408389fcc9
3 changed files with 13 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ export default function({faker, url, options, login = faker.internet.userName()}
machines:stats(),
operating_systems:stats(["Mac", "Windows", "Linux"]),
project:null,
projects:stats(),
projects:/api_key=MOCKED_TOKEN_NO_PROJECTS/.test(url) ? null : stats(),
total_seconds:faker.datatype.number(1000000000),
total_seconds_including_other_language:faker.datatype.number(1000000000),
},