message: Fixed tests of 'spo list webhook add' solving
diff: @@ -499,26 +499,32 @@ describe(commands.LIST_WEBHOOK_ADD, () => {
  });
  it('fails validation if the expirationDateTime is in the past', () => {
  + const currentDate: Date = new Date();
  + const dateString: string = (currentDate.getFullYear() - 1) + "-" + currentDate.getMonth() + "-01";
  +
  const actual = (command.validate() as CommandValidate)({
  options:
  {
  webUrl: 'https://contoso.sharepoint.com',
  listTitle: 'Documents',
  notificationUrl: 'https://contoso-funcions.azurewebsites.net/webhook',
  - expirationDateTime: '2017-12-25'
  + expirationDateTime: dateString
  }
  });
  assert.strictEqual(actual, 'Provide an expiration date which is a date time in the future and within 6 months from now');
  });
  it('fails validation if the expirationDateTime more than six months from now', () => {
  + const currentDate: Date = new Date();
  + const dateString: string = (currentDate.getFullYear() + 1) + "-" + currentDate.getMonth() + "-01";
  +
  const actual = (command.validate() as CommandValidate)({
  options:
  {
  webUrl: 'https://contoso.sharepoint.com',
  listTitle: 'Documents',
  notificationUrl: 'https://contoso-funcions.azurewebsites.net/webhook',
  - expirationDateTime: '2019-10-09'
  + expirationDateTime: dateString
  }
  });
  assert.strictEqual(actual, 'Provide an expiration date which is a date time in the future and within 6 months from now');
  