Skip to content

Commit

Permalink
apply sinon changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Sep 5, 2023
1 parent 950ff53 commit 923cd9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/botbuilder/tests/cloudAdapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('CloudAdapter', function () {
});

it('throws exception on expired token', async function () {
const consoleStub = sinon.stub(console, 'error');
const consoleStub = sandbox.stub(console, 'error');

// Expired token with removed AppID
const authorization =
Expand Down Expand Up @@ -151,7 +151,6 @@ describe('CloudAdapter', function () {

assert.equal(StatusCodes.UNAUTHORIZED, res.statusCode);
expect(consoleStub.calledWithMatch({ message: 'The token has expired' })).to.be.true;
consoleStub.restore();
});
});

Expand Down

0 comments on commit 923cd9a

Please sign in to comment.