Fix TerminalState tests

This commit is contained in:
Daniel Imms 2021-09-17 06:31:34 -07:00
parent 3e3460b768
commit 4a7fddb0d2

View file

@ -230,7 +230,7 @@ import { assertNoRpc } from '../utils';
test('onDidChangeTerminalState should fire after writing to a terminal', async () => {
const terminal = window.createTerminal();
deepStrictEqual(terminal.state, { interactedWith: false });
deepStrictEqual(terminal.state, { isInteractedWith: false });
const eventState = await new Promise<TerminalState>(r => {
disposables.push(window.onDidChangeTerminalState(e => {
if (e === terminal) {
@ -239,8 +239,8 @@ import { assertNoRpc } from '../utils';
}));
terminal.sendText('test');
});
deepStrictEqual(eventState, { interactedWith: true });
deepStrictEqual(terminal.state, { interactedWith: true });
deepStrictEqual(eventState, { isInteractedWith: true });
deepStrictEqual(terminal.state, { isInteractedWith: true });
await new Promise<void>(r => {
disposables.push(window.onDidCloseTerminal(t => {
if (t === terminal) {