Skip to content
Commits on Aug 3, 2012
  1. Littered with comments

    committed Aug 3, 2012
  2. Minor refactor

    committed Aug 3, 2012
Commits on Aug 2, 2012
  1. More var renaming

    committed Aug 2, 2012
  2. Fixed bug with deep template objects

    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);
    ````
    committed Aug 2, 2012
  3. Removed methods from templates when they are objects, as they don't w…

    …ork.
    
    Also, "refactored", which I think introduced a bug not covered by the
    tests.
    committed Aug 2, 2012
  4. re-organised the tests

    committed Aug 2, 2012
  5. whitespace

    committed Aug 2, 2012
  6. Merge branch 'preset-template' of https://github.com/nathanmacinnes/p…

    …retendr into preset-template
    
    Conflicts:
    	lib/pretendr.js
    	test/spec.js
    committed Aug 2, 2012
Commits on Jul 31, 2012
  1. Made templates able to have a preset return value

    unknown committed Jul 31, 2012
Commits on Jul 28, 2012
  1. updated interface for version 0.5

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

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

    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
    committed Jan 18, 2012
  2. Removed untested code

    I'll create a failing test then add it back in
    committed Jan 18, 2012
  3. updated version number

    committed Jan 18, 2012
  4. Created the same interface for browser and node

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

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

    Not in an environment where I can test it
    committed Jan 18, 2012
  7. Changed to make browser interface match node interface

    Not yet tested in the browser
    committed Jan 18, 2012
  8. typo

    committed Jan 18, 2012
  9. Package changes

    committed Jan 18, 2012
  10. removed Mockery remnant

    committed Jan 18, 2012
Commits on Jan 17, 2012
Something went wrong with that request. Please try again.