poetic:promise-test-extension

v0.0.3Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Install

meteor add poetic:meteor-promise-test-extension

Helpers

  • Promise.wait([Number timeout])
  • Promise.find(String jquerySelector)
  • .wait([Number timeout]) # .wati will pass the previous result to the next then
  • .find(String jquerySelector)
  • .finally(Function fn)

Config

These are default configs, you can change them as you wish

Promise.WAIT_UNTILL_INTERVAL = 500
Promise.WAIT_UNTILL_TIMEOUT  = 3000

Warning

This package will NOT be included in the production bundle since I set the debugOnly flag to true.