mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(web): animate pull refresh indicator (#1337)
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
filterActiveSessionsOnly,
|
||||
getSessionTimeRange,
|
||||
getNextSessionVisibleCount,
|
||||
getPullRefreshIndicatorRotation,
|
||||
getPreviousSessionVisibleCount,
|
||||
getPullToRefreshState,
|
||||
getSessionDedupKey,
|
||||
@@ -514,3 +515,10 @@ describe('getPullToRefreshState', () => {
|
||||
expect(getPullToRefreshState(64)).toBe('ready')
|
||||
})
|
||||
})
|
||||
|
||||
describe('getPullRefreshIndicatorRotation', () => {
|
||||
it('turns the pull indicator upward once refresh is ready', () => {
|
||||
expect(getPullRefreshIndicatorRotation('pulling')).toBe(0)
|
||||
expect(getPullRefreshIndicatorRotation('ready')).toBe(180)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user