Scroll Regsiter
√ should create a Observable of scroll observable
× should create a Observable of scroll observable with default 300 throttle
Expected 1 to be greater than or equal 300.
at SafeSubscriber._next (spec.bundle.js:99090:32)
[X] tests run successfully (local)
Seems like the test case was written for the sampleTime strategy. The elapsed time between start end end was near 0ms because ThrottleTime emits a value then ignores other values for a duration (when leading is true, trailing is false). Therefore the expected elapsed time for the test nammed should create a Observable of scroll observable with default 300 throttle could not be 300ms.
A non failing test suit will encourage people to contribute to the project.
This PR fix a failing test case.
steps:
npm i
npm run test
There is one failing test case:
Seems like the test case was written for the sampleTime strategy. The elapsed time between
start
endend
was near 0ms because ThrottleTime emits a value then ignores other values for a duration (when leading is true, trailing is false). Therefore the expected elapsed time for the test nammedshould create a Observable of scroll observable with default 300 throttle
could not be 300ms.A non failing test suit will encourage people to contribute to the project.