Skip to content

Spy API? #119

@elsassph

Description

@elsassph

There is no nice way to spy just one function of an object.

aa = {
   someFun: function()
     ? "doing something"
   end function
}

' what about?

_brs_.spyFunction(aa, "someFun")

aa.someFun("hey") ' does nothing
aa.someFun.called ' true
aa.someFun.calledWith ' ["hey"]
aa.someFun.calledTimes ' 1

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