Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud
Created July 3, 2020 17:02
// For complete examples and data files, please go to https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node
const fileName = "sample.mpp";
const localPath = "./Data/" + fileName;
const remotePath = "Temp/Data";
const remoteFullPath = remotePath + "/" + fileName;
await tasksApi.uploadFileToStorage(remoteFullPath, localPath);
const request = new GetTaskRecurringInfoRequest();
request.name = fileName;
request.folder = remotePath;
request.taskUid = 6;
const result = await tasksApi.getTaskRecurringInfo(request);
expect(result.response.statusCode).to.equal(200);
expect(result.body.recurringInfo).is.not.undefined.and.not.null;
const entity = result.body.recurringInfo;
expect(entity.occurrences).to.equal(2);
expect(entity.recurrencePattern).to.equal(RecurrencePattern.Monthly);
expect(entity.useEndDate).to.equal(true);
expect(entity.monthlyUseOrdinalDay).to.equal(false);
expect(entity.monthlyDay).to.equal(1);
expect(entity.weeklyDays).to.equal(WeekDayType.None);
expect(entity.yearlyOrdinalNumber).to.equal(OrdinalNumber.Second);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment