My favorites | Sign in
Project Logo
                
Show all Featured downloads:
amok-0.3.tar.gz
People details
Project owners:
  chrisincambo

amok (pronounced 'amok' not 'A Mok') is a user friendly mocking framework named after the signature dish of Cambodia.

Example

var mock = amok.Mock(MyClass);
mock.should_receive("getFoo").with_args("someValue", String, Number).times(3).and_return("foo")

Why amok?

The authors of amok built the framework out of necessity, although at the time of the first release there were already two mocking frameworks for JavaScript, which may be working out great for other teams we found that they weren't sufficient for the specific needs of our team and would find ourselves hand coding stubs for many of our spec and test writing requirements.

We met our own personal requirements of a JavaScript mocking framework by implementing the following features and design principles:









Hosted by Google Code