Skip to content

Wrong assertions in state specs #15

Open
@DaQuirm

Description

@DaQuirm

Throw assertions are written in an ambiguous way so compiler actually creates a wrapper function around method calls which renders the assertions useless, e.g.

-> participant.update_state().should.throw Error

becomes

function() {
        return participant.update_state().should["throw"](Error);
};

which is not quite what's expected 😕

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions