Permalink
Commits on Jan 16, 2017
  1. Delete MAINTAINERS (#903)

    keithamus committed with lucasfcosta Jan 16, 2017
Commits on Jan 12, 2017
  1. Refactor `utils.addChainableMethod` helper (#900)

    * replace __proto__ with Object.setPrototypeOf
    
    * remove hardcoded keys
    
    * cache non-configurable keys
    shvaikalesh committed with lucasfcosta Jan 12, 2017
  2. Merge pull request #901 from meeber/supported-versions

    chore: update supported Node versions
    keithamus committed on GitHub Jan 12, 2017
Commits on Jan 11, 2017
  1. chore: update supported Node versions

    - Dropped support for Node v0.12
    - Made Node v4 the minimum required version
    - Added Node v7 to travis
    meeber committed Jan 11, 2017
Commits on Jan 3, 2017
  1. Merge pull request #884 from meeber/fix-stack

    Remove proxy frames from stack traces and improve docs/tests
    keithamus committed on GitHub Jan 3, 2017
  2. refactor(Assertion): small edit and improve docs

    - Rename third parameter of Assertion constructor from `stack` to
      `ssfi` for consistency's sake.
    - Add documentation to Assertion constructor explaining what the `object`,
      `message`, and `ssfi` flags are for.
    meeber committed Dec 18, 2016
  3. refactor(ssfi): remove dead code and update docs

    There was some dead code leftover from before `includeStack` was made
    into a config value (as opposed to existing as a property on the
    Assertion object). This commit removes that dead code, and adds inline
    documentation for the remaining stack-related code.
    meeber committed Dec 11, 2016
  4. test(includeStack): add `should` interface

    Only the `expect` interface was being tested for correct stack traces.
    This commit adds identical tests for the `should` interface.
    meeber committed Dec 11, 2016
  5. fix: remove proxy frames from stack traces

    Proxy-related implementation frames were showing up in the stack
    traces for failed property assertions. This commit removes them by
    setting the proxy getter (instead of the property getter) as the
    starting point to remove all implementation frames.
    meeber committed Dec 11, 2016
  6. test(includeStack): improve tests

    Only a couple of types of assertions were being tested for correct
    stack traces. This commit cleans up the existing tests and adds tests
    for the missing assertion types.
    meeber committed Dec 11, 2016
  7. refactor(utils): improve function names

    Many of the utility functions had slightly misleading names or no
    names at all. This commit renames the functions with misleading names
    and adds names to functions that were missing one.
    meeber committed Dec 10, 2016
  8. refactor(proxify): use Reflect for property access

    The proper way to perform an operation's original behavior from
    within a proxy trap is by using `Reflect`.
    meeber committed Dec 10, 2016
  9. refactor(proxify): move feature detection to util

    Currently, only one module needs to detect if Chai's proxy protection
    is enabled. However, upcoming changes will involve performing this
    detection in other modules as well. This commit moves the detection
    logic to its own utility module for easy reuse.
    meeber committed Dec 10, 2016
  10. Merge pull request #897 from meeber/proxy-length

    Un-deprecate `length` and add guard
    keithamus committed on GitHub Jan 3, 2017
  11. feat(utils): add length guard to methods

    When the `length` assertion is chained directly off of an uninvoked
    method, it references `function`'s built-in `length` property instead
    of Chai's `length` assertion. This commit adds a guard to Chai methods
    to detect this problem and throw a helpful error message that advises
    the user on how to correct it.
    meeber committed Jan 3, 2017
Commits on Jan 2, 2017
  1. refactor(lengthOf): favor it over `length`

    - The method part of the `length` assertion was slated for deprecation
      due to a compatibility issue in legacy environments. The decision to
      deprecate `length` was reversed per #684. This commit replaces the
      deprecation notice with a recommendation to favor `lengthOf` over
      `length` due to the compatibility issue.
    
    - The `lengthOf` assertion wasn't a true alias of `length` because it
      was a method assertion instead of a chainable method assertion. This
      commit changes `lengthOf` into a chainable method assertion that's
      identical to `length`, and updates tests and docs accordingly.
    
    - Updates docs to classify `length` as an alias of `lengthOf`.
    
    - Updates docs of related assertions to use `lengthOf` instead of
      `length`.
    meeber committed Jan 2, 2017
Commits on Dec 18, 2016
  1. Center repo name on README (#889)

    astorije committed with lucasfcosta Dec 18, 2016
Commits on Nov 24, 2016
  1. Merge pull request #875 from bdadam/patch-1

    Provided browser field in package.json
    shvaikalesh committed on GitHub Nov 24, 2016
Commits on Nov 23, 2016
  1. Provided browser field in package.json

    Some tools use the browser field in the package.json to use an alternate main file. This is e.g. the case for rollup-plugin-node-resolve (https://github.com/rollup/rollup-plugin-node-resolve).
    Specs: https://github.com/defunctzombie/package-browser-field-spec#alternate-main---basic
    bdadam committed on GitHub Nov 23, 2016
Commits on Nov 18, 2016
  1. Auto register side effects and Update documentation (#872)

    * Update chai/{testing-style} to chai/register-{testing-style}
    
    * Update documentation on registering side effects and remove module.exports
    
    * Update README.md usage for minor consistency issues
    Inanc committed with lucasfcosta Nov 18, 2016
  2. Merge pull request #871 from chaijs/greenkeeper/deep-eql-2.0.1

    fix(package): update deep-eql to version 2.0.1
    keithamus committed on GitHub Nov 18, 2016
  3. fix(package): update deep-eql to version 2.0.1

    greenkeeper[bot] committed with vieiralucas Nov 15, 2016
Commits on Nov 17, 2016
  1. Merge pull request #868 from deeperx/auto-register-expect-side-effect

    Add script that registers expect as a side-effect
    keithamus committed on GitHub Nov 17, 2016
  2. Update README.md for explanatory title of native modules usage

    inancgumus committed Nov 17, 2016
  3. test: comment out broken tests in Safari 10 (#869)

    Three tests on the `should` interface are failing in Safari 10 due to a
    bug related to proxies. These tests should be re-enabled once the bug is
    fixed. See #855.
    meeber committed with lucasfcosta Nov 17, 2016
  4. Update README.md for conventions used in the prior usage

    inancgumus committed Nov 17, 2016
  5. Update Readme for the usage of auto registered chai styles

    inancgumus committed Nov 17, 2016
Commits on Nov 16, 2016
  1. Add script that register should into the global space

    inancgumus committed Nov 16, 2016
  2. Add script that registers expect as a side-effect

    inancgumus committed Nov 16, 2016
Commits on Nov 15, 2016
  1. Merge pull request #866 from meeber/throw-doc

    docs: rewrite `.throw` jsdoc
    keithamus committed on GitHub Nov 15, 2016
  2. docs: rewrite `.throw` jsdoc

    meeber committed Nov 15, 2016
Commits on Nov 1, 2016
  1. Merge pull request #816 from vieiralucas/drop-node-0.10

    Drop support of node v0.10
    meeber committed on GitHub Nov 1, 2016
Commits on Oct 25, 2016
  1. Merge pull request #854 from chaijs/create-license

    Create LICENSE
    keithamus committed on GitHub Oct 25, 2016
  2. Create LICENSE

    keithamus committed on GitHub Oct 25, 2016