fix(core): update
This commit is contained in:
@ -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({
|
||||
|
Reference in New Issue
Block a user