shana
v0.1.2
Published
Testing utilities for Cloud Functions.
Downloads
2
Maintainers
Readme
Shana
Testing utilities for Cloud Functions.
Observe update event with timeout
import * as Shana from 'shana'
test('user.name is Yukari Hirai', () => {
// fire Cloud Functions
...
observe<User>(userReference, (user, resolve, reject)=> {
if (user.name === 'Yukari Hirai'){
return resolve()
} else if (user.name === 'Kazumi Yoshida') {
return reject()
}
}, 20000)
})