Skip to content

Commit

Permalink
Update user-app-remove.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nanddeepn authored Oct 8, 2023
1 parent 7756d11 commit 7f3e723
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/m365/teams/commands/user/user-app-remove.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,6 @@ describe(commands.USER_APP_REMOVE, () => {
assert.notStrictEqual(command.description, null);
});

it('fails validation if both id and name options are passed', async () => {
const actual = await command.validate({
options: {
id: 'e3e29acb-8c79-412b-b746-e6c39ff4cd22',
name: 'TeamsApp'
}
}, commandInfo);
assert.notStrictEqual(actual, true);
});

it('fails validation if both id and name options are not passed', async () => {
const actual = await command.validate({
options: {
}
}, commandInfo);
assert.notStrictEqual(actual, true);
});

it('fails validation if the userId is not a valid guid.', async () => {
const actual = await command.validate({
options: {
Expand Down Expand Up @@ -289,4 +271,4 @@ describe(commands.USER_APP_REMOVE, () => {
}
} as any), new CommandError(error.error.message));
});
});
});

0 comments on commit 7f3e723

Please sign in to comment.