function checkCommandsEqual()

in Tasks/codepush-release-cordova/test.js [46:52]


  function checkCommandsEqual(expectedCommands, execStub) {
    assert.equal(execStub.callCount, expectedCommands.length, "Expected " + expectedCommands.length + " commands, but executed " + execStub.callCount);
    expectedCommands.forEach(function(expectedCommand, i) {
      var actualCommand = execStub.getCall(i).args[0].substring(CodePush.commandPrefix.length + /*space*/1);
      assert.equal(expectedCommand, actualCommand, "Expected: " + expectedCommand + " Got: " + actualCommand);
    });
  }