Skip to content

Commit

Permalink
Fixed bug for failing test in command list webhook add resolving #1131
Browse files Browse the repository at this point in the history
  • Loading branch information
rabwill authored and waldekmastykarz committed Oct 5, 2019
1 parent 66fdd90 commit ff956a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/o365/spo/commands/list/list-webhook-add.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ describe(commands.LIST_WEBHOOK_ADD, () => {

it('passes validation if the expirationDateTime is in the future but no more than six months from now', () => {
const currentDate: Date = new Date();
const dateString: string = currentDate.getFullYear() + "-" + (currentDate.getMonth() + 4) + "-01";
currentDate.setMonth(currentDate.getMonth() + 4);
const dateString: string = currentDate.getFullYear() + "-" + currentDate.getMonth() + "-01";

const actual = (command.validate() as CommandValidate)({
options:
Expand Down

0 comments on commit ff956a3

Please sign in to comment.