busterjs/buster — Issue #70: `assert.calledOnce` throws exception when arbitrary object is given
Author: augustl
Created: 2012-02-15 10:05:50+00:00
State: open

By mistake, I passed a plain object instead of a stub or spy to `assert.calledOnce`.

assert.calledOnce({});

This causes a "TypeError: this.fail is not a function". Seems like an unhandled case of some sorts. Should probably error with "Expected stub or spy, got {}" or something like that.