shana
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Shana npm version Build Status Codacy Badge License: MIT

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)
})

Package Sidebar

Install

npm i shana

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

220 kB

Total Files

9

Last publish

Collaborators

  • star__hoshi