Permalink
Switch branches/tags
Commits on Jan 18, 2015
  1. Merge pull request #122 from janmarek/throw-alias

    Added alias throw to throwException/throwError
    rauchg committed Jan 18, 2015
Commits on Jan 17, 2015
  1. Merge pull request #125 from Rauno56/fix/runTest

    Fix/run test
    rauchg committed Jan 17, 2015
  2. Update README.md

    rauchg committed Jan 17, 2015
Commits on Nov 17, 2014
  1. feat: Add `npm test` script

    Rauno56 committed Nov 17, 2014
Commits on Feb 20, 2014
  1. README: update

    rauchg committed Feb 20, 2014
  2. Release 0.3.1

    rauchg committed Feb 20, 2014
  3. index: bump version

    rauchg committed Feb 20, 2014
  4. Release 0.3.0

    rauchg committed Feb 20, 2014
  5. switch to `index`

    rauchg committed Feb 20, 2014
  6. Merge pull request #99 from benjamine/patch-1

    added repository to package.json
    rauchg committed Feb 20, 2014
Commits on Feb 15, 2014
  1. added repository to package.json

    this will stop npm from throwing a warning everytime expect.js is installed
    Benjamín Eidelman committed Feb 15, 2014
Commits on Jun 12, 2013
  1. Merge pull request #53 from hotchemi/spike

    simpify isDate() and remove unnecessary semicolon.
    rauchg committed Jun 12, 2013
Commits on Jun 5, 2013
  1. simpify isDate() and remove unnecessary semicolon.

    hotchemi committed with unknown Apr 17, 2013
Commits on Jun 4, 2013
  1. Merge pull request #54 from timshadel/master

    Add .with() syntax for easier scenarios
    rauchg committed Jun 4, 2013
  2. Add .withArgs() syntax for building scenario

    Makes it easy to test that a function validates its inputs.
    timshadel committed May 4, 2013
  3. Merge pull request #29 from nathanmacinnes/master

    Expose object stringification function `i`
    rauchg committed Jun 4, 2013
  4. Merge pull request #26 from amasad/fix-25

    Use isRegExp in Assertion::throwException. Fix #25
    rauchg committed Jun 4, 2013
  5. Merge pull request #17 from tricknotes/cleanup

    Cleaned up local variables
    rauchg committed Jun 4, 2013
  6. Merge pull request #34 from curvedmark/mocha-diff

    Add 'actual' & 'expected' property to the thrown error
    rauchg committed Jun 4, 2013
  7. Merge pull request #46 from bramstein/bs-add-regexp

    Add support for 'regexp' type and eql comparison of regular expressions.
    rauchg committed Jun 4, 2013
  8. Merge pull request #52 from mikeando/master

    Addition of formatting for Error objects.
    rauchg committed Jun 4, 2013
  9. Merge pull request #56 from aseemk/patch-1

    eql(): fix wrong order of actual vs. expected
    rauchg committed Jun 4, 2013
Commits on May 25, 2013
  1. eql(): fix wrong order of actual vs. expected.

    The helper `expect.eql()` function, like typical assertion methods,
    takes `actual` then `expected`:
    
    https://github.com/LearnBoost/expect.js/blob/master/expect.js#L850
    
    But the `Assertion.prototype.eql` wrapper has been incorrectly
    passing `this.obj` (the object being tested) as the `expected`, and
    vice versa passing `obj` (the object used for comparison) as the
    `actual`. This fixes that.
    aseemk committed May 25, 2013
Commits on Apr 10, 2013
  1. Added formatting for Error objects

    Printing an error object from node.js generates an unhelpful `{}` response.
    
    ~~~
    var e = new Error("Something went bad");
    expect(e).to.be(null); // Prints Error: expected {} to equal null
    ~~~
    
    Passing the response through toString gives a nicer result:
    
    ~~~
    Prints Error: expected [Error: Something went wrong] to equal null
    ~~~
    mikeando committed Apr 10, 2013
Commits on Feb 18, 2013
Commits on Oct 19, 2012
  1. Release 0.2.0

    rauchg committed Oct 19, 2012
  2. Merge pull request #35 from satazor/master

    Fix isRegExp bug in some edge cases
    rauchg committed Oct 19, 2012
Commits on Sep 27, 2012
  1. Better to follow the same coding style

    Gavin Huang committed Sep 27, 2012
  2. Use 'showDiff' flag

    Gavin Huang committed Sep 27, 2012
Commits on Sep 25, 2012
  1. Add 'actual' & 'expected' property to the thrown error

    Gavin Huang committed Sep 25, 2012
  2. Pass .fail() unit test

    Gavin Huang committed Sep 25, 2012