Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: template-deep-…
Commits on Aug 2, 2012
  1. Fixed bug with deep template objects

    authored
    The below wouldn't work because `t.aProperty.aFunction` didn't have a
    `returnValue` method
    ````javascript
    var t = pretendrObj.template({
        aProperty : {
            aFunction : function () {}
        }
    });
    t.aProperty.aFunction.returnValue(1);
    ````
  2. Removed methods from templates when they are objects, as they don't w…

    authored
    …ork.
    
    Also, "refactored", which I think introduced a bug not covered by the
    tests.
  3. re-organised the tests

    authored
  4. whitespace

    authored
  5. Merge branch 'preset-template' of https://github.com/nathanmacinnes/p…

    authored
    …retendr into preset-template
    
    Conflicts:
    	lib/pretendr.js
    	test/spec.js
Commits on Jul 31, 2012
Commits on Jul 28, 2012
  1. updated interface for version 0.5

    authored
    Plus complete re-write of the tests using Mocha and expect.js
Commits on Jan 19, 2012
  1. Changed interface back to calling pretendr() directly

    authored
    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.
Commits on Jan 18, 2012
  1. Re-added feature with a test to go with it

    authored
    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
  2. Removed untested code

    authored
    I'll create a failing test then add it back in
  3. updated version number

    authored
  4. Created the same interface for browser and node

    authored
    For browser, use global PRETENDR
    For node, use var PRETENDR = require('pretendr');
    
    Made tests work with both
  5. cleaned up

    authored
    Doesn't work with the browser as-is, so removed bits meant to make it work with the browser
  6. Hopefully this will work in the browser too

    authored
    Not in an environment where I can test it
  7. Changed to make browser interface match node interface

    authored
    Not yet tested in the browser
  8. typo

    authored
  9. Package changes

    authored
  10. removed Mockery remnant

    authored
Commits on Jan 17, 2012
  1. Fixed dependency error

    authored
Something went wrong with that request. Please try again.