Doctest is based on the Python doctest module originally written by Tim Peters. Spy was inspired some by Jasmine's Spy class, and carries over ideas from MiniMock. If you've used Python's doctest and found it annoying or not widely useful for doctest: doctest.js fixes all those problems.
Demo: http:/ / doctestjs. org/
License: MIT License