You're basically recreating what sinon does for us automatically. Here's the docs for spies: http://sinonjs.org/docs/#spies

You can just do:

```
spy = sinon.spy(chalkStub, "yellow");

// later

assert(spy.calledOnce);
```