Skip to content

Commit 032741d

Browse files
committed
polish test
1 parent 78ae35c commit 032741d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/common/terminals/service.unit.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ suite('Terminal Service', () => {
189189
terminal.verify((t) => t.sendText(TypeMoq.It.isValue(textToSend)), TypeMoq.Times.exactly(1));
190190
});
191191

192-
// Ensure sendText is called when Python shell integration are disabled.
193-
test('Ensure text is sent to terminal and it is shown when Python shell integration is disabled', async () => {
192+
test('Ensure sendText is used when Python shell integration is disabled', async () => {
194193
pythonConfig
195194
.setup((p) => p.get('terminal.shellIntegration.enabled'))
196195
.returns(() => false)
@@ -211,7 +210,6 @@ suite('Terminal Service', () => {
211210
terminal.verify((t) => t.sendText(TypeMoq.It.isValue(textToSend)), TypeMoq.Times.exactly(1));
212211
});
213212

214-
// Ensure sendText is called when terminal.shellIntegration is enabled but Python shell integration is disabled
215213
test('Ensure sendText is called when terminal.shellIntegration enabled but Python shell integration disabled', async () => {
216214
pythonConfig
217215
.setup((p) => p.get('terminal.shellIntegration.enabled'))
@@ -233,8 +231,7 @@ suite('Terminal Service', () => {
233231
terminal.verify((t) => t.sendText(TypeMoq.It.isValue(textToSend)), TypeMoq.Times.exactly(1));
234232
});
235233

236-
// Ensure executeCommand is called when Python shell integration and terminal shell integration are both enabled
237-
test('Ensure sendText is not called when Python shell integration and terminal shell integration are both enabled', async () => {
234+
test('Ensure sendText is NOT called when Python shell integration and terminal shell integration are both enabled', async () => {
238235
pythonConfig
239236
.setup((p) => p.get('terminal.shellIntegration.enabled'))
240237
.returns(() => true)

0 commit comments

Comments
 (0)