[Bug 1295037] New: Review Request: nodejs-rewire - Easy dependency injection for node.js unit testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx
          Reporter: tom@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: package-review@xxxxxxxxxxxxxxxxxxxxxxx




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
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review




[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]