mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 03:25:38 +00:00
Fix TerminalState tests
This commit is contained in:
parent
3e3460b768
commit
4a7fddb0d2
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue