From 4354ddd2cb0e86a2c95ae9ba61bf9bedaf5f8798 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Tue, 12 Mar 2024 07:55:01 -0700 Subject: [PATCH] Fix terminal state test to work with new api --- .../src/singlefolder-tests/terminal.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts b/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts index 27e25dbf17f..31b4cd8ea45 100644 --- a/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts +++ b/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts @@ -233,7 +233,10 @@ import { assertNoRpc, poll } from '../utils'; test('onDidChangeTerminalState should fire after writing to a terminal', async () => { const terminal = window.createTerminal(); - deepStrictEqual(terminal.state, { isInteractedWith: false }); + deepStrictEqual(terminal.state, { + isInteractedWith: false, + isShellIntegrationActivated: false + }); const eventState = await new Promise(r => { disposables.push(window.onDidChangeTerminalState(e => { if (e === terminal) { @@ -242,8 +245,8 @@ import { assertNoRpc, poll } from '../utils'; })); terminal.sendText('test'); }); - deepStrictEqual(eventState, { isInteractedWith: true }); - deepStrictEqual(terminal.state, { isInteractedWith: true }); + strictEqual(eventState.isInteractedWith, true); + strictEqual(terminal.state.isInteractedWith, true); await new Promise(r => { disposables.push(window.onDidCloseTerminal(t => { if (t === terminal) {