Open DaveTacker opened 5 years ago
I am getting the same error when I try to Unit Test(jasmine) the component in which I have used Idle.
For now, do something like this https://stackoverflow.com/questions/43919222/mock-idle-in-angular-4-unit-tests
This will work
Even I m facing same issue. any alternative to mocking would be great.
Describe the bug ERROR TypeError: this.expiry.last is not a function at Idle.push../node_modules/@ng-idle/core/fesm5/ng-idle-core.js.Idle.watch (ng-idle-core.js:1221)
To Reproduce app.module.ts
app.component.ts
idle.service.ts
Expected behavior A timer starts that will reset upon user activity.
Please tell us about your environment
Additional context I followed the example as closely as I could to import the module into the project.