fix(core): update

This commit is contained in:
2023-06-22 13:54:39 +02:00
parent ec29db26ef
commit c5937da870
5 changed files with 34 additions and 43 deletions

View File

@ -15,12 +15,12 @@ tap.test('smartshell should create a Smartshell instance', async () => {
tap.test('smartshell should run async', async () => {
let execResult = await testSmartshell.exec('npm -v');
// expect(execResult.stdout).toMatch(/[0-9\.]*/);
expect(execResult.stdout).toMatch(/[0-9\.]*/);
});
tap.test('smartshell should run async and silent', async () => {
let execResult = await testSmartshell.execSilent('npm -v');
// expect(execResult.stdout).toMatch(/[0-9\.]*/);
expect(execResult.stdout).toMatch(/[0-9\.]*/);
});
tap.test('smartshell should stream a shell execution', async () => {
@ -30,7 +30,7 @@ tap.test('smartshell should stream a shell execution', async () => {
done.resolve(data);
});
let data = await done.promise;
// expect(data).toMatch(/[0-9\.]*/);
expect(data).toMatch(/[0-9\.]*/);
await execStreamingResponse.finalPromise;
});
@ -49,7 +49,7 @@ tap.test('should be able to find git', async () => {
});
tap.test('should spawn an interactive cli', async () => {
// await testSmartshell.execInteractive('echo "hi"');
await testSmartshell.execInteractive('echo "hi"');
});
tap.start({