Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .deep.property for deep equality comparisons #758

Merged
merged 3 commits into from
Aug 15, 2016

Commits on Jul 24, 2016

  1. Breaking: Change .not.property(name, val) behavior

    - Previously, `expect(obj).not.property(name, val)` would throw an Error
    if `obj` didn't have a property named `name`. This change causes the
    assertion to pass instead.
    - assert.propertyNotVal renamed to assert.notPropertyVal
    - assert.deepPropertyNotVal renamed to assert.notDeepPropertyVal
    meeber committed Jul 24, 2016
    Configuration menu
    Copy the full SHA
    576489a View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2016

  1. Breaking: Rename .deep.property to .nested.property

    - Previously, the `deep` flag had unexpected behavior when used with the
    `property` assertion: Instead of switching from strict to deep equality,
    it unlocked the ability to use dot and bracket notation when referencing
    property names. This behavior now belongs to the new `nested` flag.
    - assert.deepProperty renamed to assert.nestedProperty
    - assert.notDeepProperty renamed to assert.notNestedProperty
    - assert.deepPropertyVal renamed to assert.nestedPropertyVal
    - assert.notDeepPropertyVal renamed to assert.notNestedPropertyVal
    meeber committed Jul 25, 2016
    Configuration menu
    Copy the full SHA
    92768fd View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2016

  1. Configuration menu
    Copy the full SHA
    a5a90cb View commit details
    Browse the repository at this point in the history