lib/client/mediator-subscribers/create-spec.js
function checkMocksCalled(createResult) {
        expect(createResult).to.deep.equal(createResult);

        sinon.assert.calledOnce(mockDatasetManager.create);
        sinon.assert.calledWith(mockDatasetManager.create, sinon.match(mockDataToCreate));
      }
function checkMocksCalled(createResult) {
        expect(createResult).to.deep.equal(createResult);

        sinon.assert.calledOnce(mockDatasetManager.create);
        sinon.assert.calledWith(mockDatasetManager.create, sinon.match(mockDataToCreate));
      }
function checkMocksCalled ( createResult ) { expect ( createResult ) . to . deep . equal ( createResult ) ; sinon . assert . calledOnce ( mockDatasetManager . create ) ; sinon . assert . calledWith ( mockDatasetManager . create , sinon . match ( mockDataToCreate ) ) ; }
Verifying the mocks were called with the correct parameters.
Verifying the mocks were called with the correct parameters .