Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const {ref} = database
- const result = yield call([database, ref], url)
- const {remove} = database.ref()
- yield call([result, remove])
- const databaseMock = {ref: jest.fn()}
- const {ref} = databaseMock
- const {remove} = databaseMock.ref() //how can i do this correctly?
Add Comment
Please, Sign In to add comment