mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
Fix terminal API tests
This commit is contained in:
@@ -253,7 +253,7 @@ suite('window namespace tests', () => {
|
||||
});
|
||||
|
||||
test('createTerminal, Terminal.name', () => {
|
||||
var terminal = window.createTerminal('foo');
|
||||
var terminal = window.createTerminal({ name: 'foo' });
|
||||
assert.equal(terminal.name, 'foo');
|
||||
|
||||
assert.throws(() => {
|
||||
@@ -262,7 +262,7 @@ suite('window namespace tests', () => {
|
||||
});
|
||||
|
||||
test('createTerminal, immediate Terminal.sendText', () => {
|
||||
var terminal = window.createTerminal();
|
||||
var terminal = window.createTerminal({});
|
||||
// This should not throw an exception
|
||||
terminal.sendText('echo "foo"');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user