Testing promise sequence using mocha, chai, chai-as-promised, sinon

System Under Test Let’s say we have a method call sequence to run promise based commands in sequence. For example, below command runs c1 and when it resolves it will run c2 and so...