Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux committed Jul 22, 2024
1 parent e845b9e commit 7d5ddce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/bot-interactive-message.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ describe('Bot Notification', () => {
expect(res.status).toEqual(200)
expect(authCardRequestBody.fallbackText).toContain('unauthorized Trello successfully');
trelloUserRecord = await TrelloUser.findByPk(trelloUserRecord.id);
expect(!!trelloUserRecord.writeable_token).toEqual(false);
expect(!!trelloUserRecord.getWriteableToken()).toEqual(false);
rcAuthCardPutScope.done();
trelloRevokeScope.done();
await TrelloUser.destroy({ where: { id: trelloUserRecord.id }});
Expand Down Expand Up @@ -494,7 +494,7 @@ describe('Bot Notification', () => {
expect(res.status).toEqual(200)
expect(authCardRequestBody.fallbackText).toContain('unauthorized Trello successfully');
trelloUserRecord = await TrelloUser.findByPk(trelloUserRecord.id);
expect(!!trelloUserRecord.writeable_token).toEqual(false);
expect(!!trelloUserRecord.getWriteableToken()).toEqual(false);
rcUserRecord = await RcUser.findByPk(rcUserRecord.id);
expect(!!rcUserRecord.bot_subscriptions).toEqual(false);
const trelloWebhook = await TrelloWebhook.findByPk('test_subscription_id');
Expand Down

0 comments on commit 7d5ddce

Please sign in to comment.