expected put to be called once but was called 4 times

12 views
Skip to first unread message

snehaly...@gmail.com

unread,
Jun 8, 2018, 1:17:33 AM6/8/18
to karma-users
Hello guys..I am new to karma and I am getting "expected put to be called once but was called 4 times" issue.I tried a lot,but still not got the solution.Please help me to resolve this issue.Here is my code: 

it('should update add on classification record', () => {
let id = 'bilcer5a93dc2e579ad03f44c32427';
let controller = makeController();
controller.updateAddOnClassificationRecord(id);
sinon.assert.calledOnce(controller.addOnClassificationApi.put);
});
Reply all
Reply to author
Forward
0 new messages