cjohansen/Sinon.JS — pull request #99 by amallavarapu (2012-03-19 03:25:49+00:00)
Title: added sandbox.expectation.create

added a property getter to sandbox which enables:

var sandbox = sinon.sandbox.create();
var e1 = sandbox.expectation.create('callOnce');
e1.once();
sandbox.verify(); // error e1 was not called

which permits using expectations in the same style as sandbox.mock, sandbox.stub, etc.