In The Wild: Mockito for Javascript

Yes it’s true… there in is a framework that acts just like mockito for javascript: jsMockito!

The stubbing action looks pretty cool, and I’ll try in depth later when I’m home. But here’s a quick sample to whet your appetite:

    var mockedObject = mock(Array);

    when(mockedObject).get(1).thenReturn("hello world");
You can leave a response, or trackback from your own site.

Facebook comments:

One Response to “In The Wild: Mockito for Javascript”

  1. Chris Leishman says:

    So… what did you think after your in-depth trial?

Leave a Reply

Subscribe to RSS Feed Follow me on Twitter!