Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Conversation
actionWelcomeUser
✓ Should create new anonymous user
✓ Should greet new user
✓ Should greet existing user
actionGetLoggedWater
✓ Should tell about logged water for given user
actionLogWater
✓ Should save given amount of water and response with saved value
Cloud Functions
waterLog
UserManager
isFirstUsage
✓ Should return first usage when user doesnt exist in DB
✓ Shouldnt return first usage when user exists in DB
saveAssistantUser
✓ Should save assistant user into DB
ensureAuthUser
✓ Should authenticate anonymous user when user isnt authenticated
✓ Should return authenticated user
WaterLog
saveLoggedWater
✓ Should save logged mililiters of water
✓ Should save logged liters of water
getLoggedWaterForUser
✓ Should load logged water for given user and present data from recent day
14 passing (44ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment