const channels = jsonData.data.channels;
pm.test("Assertion: creationDate BETWEEN creationFromDate AND creationToDate", function () {
const creationFromDate = moment('2023-11-26', "YYYY-MM-DD");
const creationToDate = moment('2023-12-02', "YYYY-MM-DD");
console.log('creationFromDate', creationFromDate)
console.log('creationToDate', creationToDate)
for (const ch of channels) {
const creationDate = moment(ch.creationDate, "YYYYMMDD HH:mm:ss");
console.log('creationDate', creationDate)
pm.expect(creationDate >= creationFromDate).to.be.true;
pm.expect(creationDate <= creationToDate).to.be.true;
}
});