jsFactory
jsFactory is a means and method to declare an object with set values from a test fixture. You can also create the object with exact data that overrides the test fixture data. Unlike mock and stubs that merely return an expected response, jsFactory places objects in a known data state for the system under test.
It's a very simple library to include in test runners or even in production for building objects quickly. Simply include the jsfactory.js library and include any of the fixture files to fill in the object data.
Google Code: http://code.google.com/p/jsfactory/




