Skip to content

MockDelegateHelper does not allow to mock Booleans #37

@aalbericio

Description

@aalbericio

This line in MockDelegateHelper:

var mockData:Object = ( token.data ) ? token.data : new Object();

is blocking the creation of Boolean mock results.

If you execute something like: createMockResult(false) , that line will turn your "false" value into an Object and whatever result handlers you set for that Boolean result signature will fail to be called.

The fix is trivial.

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