We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d8ba24 commit 37cd45bCopy full SHA for 37cd45b
src/test/common/terminals/helper.unit.test.ts
@@ -103,9 +103,9 @@ suite('Terminal Service helpers', () => {
103
const term = helper.createTerminal(theTitle);
104
const args = capture(terminalManager.createTerminal).first()[0];
105
expect(term).to.be.deep.equal(terminal);
106
- const temp = args.env;
107
- // parse through temp or args.env and make sure there is no PYTHONSTARTUP
108
- expect(temp).to.not.have.property('PYTHONSTARTUP');
+ const terminalOptions = args.env;
+ const safeTerminalOptions = terminalOptions || {};
+ expect(safeTerminalOptions).to.not.have.property('PYTHONSTARTUP');
109
});
110
test('Create terminal without a title', () => {
111
const terminal = 'Terminal Created';
0 commit comments