jpex-js / jpex

Javascript Prototype Extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$stub and autoStub option

jackmellis opened this issue · comments

commented
  • $get a dependency. If it exists, enumerate all of its methods and stub them
  • then $set the stubbed result on the class
  • the stub function should be configurable, either an option passed into the plugin, or a new $ property
  • possibly auto-detect jasmine/sinon
  • have a class-level option to auto-stub all of the class's dependencies