Closed beauraines closed 1 year ago
@saintedlama I think that the github actions is missing the TOGGL_API_TOKEN
so the CI is failing.
The tests are passing locally
$ npm test
> toggl-client@1.1.0 test
> mocha
smoke test
✓ should list workspaces (163ms)
✓ should list projects in a workspace (247ms)
✓ should get a details report (303ms)
✓ should get a user (131ms)
- should get a new API token
✓ should throw an error if current password not supplied
✓ should throw an error if time of day format is invalid
✓ should throw an error if date format is invalid
- should generate time entries
7 passing (853ms)
2 pending
Will need to fix some stuff today/tomorrow
Addressed in #28
Disables retry logic following suggestion from https://github.com/sindresorhus/got/issues/1489 to prevent
throw new Error('The
onCancelhandler was attached after the promise settled.')
I've not updated my client to ESM so I'm unable to test this on the latest version, but I've been running this based upon your commit prior to the ESM conversion, 250191a4900912a193dd3b3a24c1f343188bdcfd
This is to prevent this error from occurring