Skip to content

Undefined values don't get printed #1

@vthunder

Description

@vthunder

When pretty-printing an object, keys with undefined values don't get printed.

e.g.:

let obj = {foo: "bar", baz: undefined};
chai.expect(obj, obj).to.deep.equal({foo: "bar"});

will pretty-print:

{
 "foo": "bar"
}

it should print instead:

{
  "foo": "bar",
  "baz": undefined
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions