Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add an assertion that checks how much a value has changed. #330

@oveddan

Description

@oveddan

This would be used to check if, when something is invoked, something else is changed by x.

For example:

var someArray = [1, 2, 3];

expect(function(){
  someArray.pop();
}).to.change(someArray, 'length').by(-1);

I'd be glad to take a stab at this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions