function resolveBatch(jqXHR) {
			Promise.resolve().then(function () {
				oBatchMock.expects("deserializeBatchResponse")
					.withExactArgs(null, "body")
					.returns([createResponse()]);

				jqXHR.resolve("body", "OK", { // mock jqXHR for success handler
					getResponseHeader : function (sHeader) {
						if (sHeader === "OData-Version") {
							return "4.0";
						}
						return null;
					}
				});
			});
		}
// resolves the mock for the jQuery.ajax for the batch
resolves the mock for the jQuery.ajax for the batch
resolves the mock for the jQuery . ajax for the batch
function resolveBatch(jqXHR) {
			Promise.resolve().then(function () {
				oBatchMock.expects("deserializeBatchResponse")
					.withExactArgs(null, "body")
					.returns([createResponse()]);
				jqXHR.resolve("body", "OK", { 
					getResponseHeader : function (sHeader) {
						if (sHeader === "OData-Version") {
							return "4.0";
						}
						return null;
					}
				});
			});
		}
function resolveBatch ( jqXHR ) { Promise . resolve ( ) . then ( function ( ) { oBatchMock . expects ( "deserializeBatchResponse" ) . withExactArgs ( null , "body" ) . returns ( [ createResponse ( ) ] ) ; jqXHR . resolve ( "body" , "OK" , { getResponseHeader : function ( sHeader ) { if ( sHeader === "OData-Version" ) { return "4.0" ; } return null ; } } ) ; } ) ; }
resolves the mock for the jQuery.ajax for the batch
resolves the mock for the jQuery . ajax for the batch
// mock jqXHR for success handler