summaryrefslogtreecommitdiff
path: root/extension/src/test
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-03 19:34:33 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-03 19:34:33 -0700
commit97f477e4dd64165738a6beab74edf09ef355a55a (patch)
tree352ebe3e0bd37a53f54732184b507334f531430c /extension/src/test
parenta37550d5acc0c79efd18c80d9be3dcb3999dd4e9 (diff)
downloadsncontinue-97f477e4dd64165738a6beab74edf09ef355a55a.tar.gz
sncontinue-97f477e4dd64165738a6beab74edf09ef355a55a.tar.bz2
sncontinue-97f477e4dd64165738a6beab74edf09ef355a55a.zip
fix python version on windows, other bugs, jest
Diffstat (limited to 'extension/src/test')
-rw-r--r--extension/src/test/suite/terminalEmulator.test.ts28
1 files changed, 0 insertions, 28 deletions
diff --git a/extension/src/test/suite/terminalEmulator.test.ts b/extension/src/test/suite/terminalEmulator.test.ts
deleted file mode 100644
index c4c159a4..00000000
--- a/extension/src/test/suite/terminalEmulator.test.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import { test, describe } from "mocha";
-import * as assert from "assert";
-import { PythonTracebackSnooper } from "../../terminal/snoopers";
-
-suite("Snoopers", () => {
- suite("PythonTracebackSnooper", () => {
- test("should detect traceback given all at once", async () => {
- let traceback = `Traceback (most recent call last):
- File "/Users/natesesti/Desktop/continue/extension/examples/python/main.py", line 10, in <module>
- sum(first, second)
- File "/Users/natesesti/Desktop/continue/extension/examples/python/sum.py", line 2, in sum
- return a + b
- TypeError: unsupported operand type(s) for +: 'int' and 'str'`;
- let returnedTraceback = await new Promise((resolve) => {
- let callback = (data: string) => {
- resolve(data);
- };
- let snooper = new PythonTracebackSnooper(callback);
- snooper.onData(traceback);
- });
- assert(
- returnedTraceback === traceback,
- "Detected \n" + returnedTraceback
- );
- });
- test("should detect traceback given in chunks", () => {});
- });
-});