…ork. Also, "refactored", which I think introduced a bug not covered by the tests.
…retendr into preset-template Conflicts: lib/pretendr.js test/spec.js
Plus complete re-write of the tests using Mocha and expect.js
I didn't realise you could do this in node, so changed the interface for both in 0.2 so that the browser and node.js interfaces matched. I've worked out how to do it now so changed it back, and made the version 0.3 as this is a significant interface change.
When a user calls setReturnValue with multiple values, then calls it again, it'll reset the call count so that it starts cycling from the beginning again
I'll create a failing test then add it back in
For browser, use global PRETENDR For node, use var PRETENDR = require('pretendr'); Made tests work with both
Doesn't work with the browser as-is, so removed bits meant to make it work with the browser
Not in an environment where I can test it
Not yet tested in the browser
… with a lower-case m