Skip to content

Commit 473af1b

Browse files
Renamed content() to getContent()
1 parent d3937bc commit 473af1b

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

lib/graph-js-sdk-core.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/graph-js-sdk-web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/BatchRequestContent.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export declare class BatchRequestContent {
7575
* Serialize content from BatchRequestContent instance
7676
* @return The body content to make batch request
7777
*/
78-
content(): Promise<BatchRequestBody>;
78+
getContent(): Promise<BatchRequestBody>;
7979
/**
8080
* @private
8181
* @static

lib/src/BatchRequestContent.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/BatchRequestContent.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/content/BatchRequestContent.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,11 @@ describe('addDependency', function() {
285285
});
286286
});
287287

288-
describe('content', function() {
288+
describe('getContent', function() {
289289
it('Should return error for empty requests', async () => {
290290
let batchReq = new BatchRequestContent();
291291
try {
292-
let content = await batchReq.content();
292+
let content = await batchReq.getContent();
293293
throw new Error("Something wrong with the empty requests validation");
294294
} catch (error) {
295295
assert.equal(error.name, "Empty Payload");
@@ -300,7 +300,7 @@ describe('content', function() {
300300
let req = getCreateFolderRequestCopy();
301301
let batchReq = new BatchRequestContent([req]);
302302
try {
303-
let content = await batchReq.content();
303+
let content = await batchReq.getContent();
304304
assert.isDefined(content.requests[0].body);
305305
assert.equal(typeof content.requests[0].body, "object");
306306
} catch (error) {
@@ -326,7 +326,7 @@ describe('content', function() {
326326
};
327327
let batchReq = new BatchRequestContent([uploadOneDriveFile]);
328328
try {
329-
let content = await batchReq.content();
329+
let content = await batchReq.getContent();
330330
assert.isDefined(content.requests[0].body);
331331
} catch (error) {
332332
throw error;
@@ -345,7 +345,7 @@ describe('content', function() {
345345
request: createFolderReqWithoutHeader
346346
}]);
347347
try {
348-
let content = await batchReq.content();
348+
let content = await batchReq.getContent();
349349
throw new Error("Something wrong with the header checking");
350350
} catch (error) {
351351
assert.equal(error.name, "Invalid Content-type header");

src/BatchRequestContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class BatchRequestContent {
166166
* Serialize content from BatchRequestContent instance
167167
* @return The body content to make batch request
168168
*/
169-
async content(): Promise<BatchRequestBody> {
169+
async getContent(): Promise<BatchRequestBody> {
170170
let self = this,
171171
requestBody = <BatchRequestBody>{},
172172
requests = [],

0 commit comments

Comments
 (0)