https://bugzilla.redhat.com/show_bug.cgi?id=1295037
Bug ID: 1295037
Summary: Review Request: nodejs-rewire - Easy dependency
injection for node.js unit testing
Product: Fedora
Version: rawhide
Component: Package Review
Assignee: nobody(a)fedoraproject.org
Reporter: tom(a)compton.nu
QA Contact: extras-qa(a)fedoraproject.org
CC: package-review(a)lists.fedoraproject.org
Spec URL:
http://tomh.fedorapeople.org//nodejs-rewire.spec
SRPM URL:
http://tomh.fedorapeople.org//nodejs-rewire-2.5.1-1.fc23.src.rpm
Description:
Rewire adds a special setter and getter to modules so you can
modify their behavior for better unit testing. You may:
* Inject mocks for other modules or globals like process
* Leak private variables
* Override variables within the module.
Rewire does not load the file and eval the contents to emulate
node's require mechanism. In fact it uses node's own require to
load the module. Thus your module behaves exactly the same in
your test environment as under regular circumstances (except
your modifications).
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component