Closed natlibfi-arlehiko closed 8 years ago
Changing it would be a breaking change, so it's probably better to add new functions that can be chained. What about something like:
stub.noLoop()
equals stub.loop = false
stub.withLoop()
equals stub.loop = true
Stub methods chain be chained since they return the stub object. However, stub.loop is not a function but a variable. Consider changing it to a function (I can look into implementing the change if you find this reasonable).
Examples
Variable
Function