Skip to content

Commit 4d76616

Browse files
@W-20893800: Updating test based on latest CLI change
1 parent 27d8d4b commit 4d76616

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/b2c-cli/test/commands/auth/client/token.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ describe('auth client token', () => {
9191

9292
const command = createCommand();
9393
sinon.stub(command, 'jsonEnabled').returns(false);
94-
const stdoutStub = sinon.stub(ux, 'stdout').returns(void 0 as any);
94+
// ux.stdout is already stubbed by stubCommandConfigAndLogger; get a reference to the existing stub
95+
const stdoutStub = ux.stdout as unknown as sinon.SinonStub;
9596

9697
await command.run();
9798

0 commit comments

Comments
 (0)