()
| 37 | type SessionChallengeData = AfterSave | BeforeSave; |
| 38 | |
| 39 | export const getSessionChallengeData = (): SessionChallengeData => { |
| 40 | if (isSaved()) { |
| 41 | return { |
| 42 | isSaved: true, |
| 43 | currentCount: getCurrentCount(), |
| 44 | countSinceSave: getCurrentCount() - getSavedCount() |
| 45 | }; |
| 46 | } else { |
| 47 | return { |
| 48 | isSaved: false, |
| 49 | currentCount: getCurrentCount() |
| 50 | }; |
| 51 | } |
| 52 | }; |
no test coverage detected