Guest User

Untitled

a guest
Jan 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. const {ref} = database
  2. const result = yield call([database, ref], url)
  3. const {remove} = database.ref()
  4. yield call([result, remove])
  5.  
  6. const databaseMock = {ref: jest.fn()}
  7. const {ref} = databaseMock
  8. const {remove} = databaseMock.ref() //how can i do this correctly?
Add Comment
Please, Sign In to add comment