mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-30 13:35:12 +02:00
fix: restore plan canvas process launcher
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
|
||||
const { spawn } = require('child_process');
|
||||
|
||||
const {
|
||||
createControlPaneServer,
|
||||
parseArgs,
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
const fs = require('fs');
|
||||
const http = require('http');
|
||||
const path = require('path');
|
||||
const { spawn } = require('child_process');
|
||||
const {
|
||||
canonicalizeArtifactPath,
|
||||
createSessionStore,
|
||||
|
||||
@@ -602,11 +602,11 @@ async function runTests() {
|
||||
else failed++;
|
||||
|
||||
if (
|
||||
await test('CLI browser opener handles spawn errors', async () => {
|
||||
await test('CLI browser opener delegates spawn errors to the shared launcher', async () => {
|
||||
const source = fs.readFileSync(SCRIPT, 'utf8');
|
||||
|
||||
assert.match(source, /child\.on\('error'/);
|
||||
assert.match(source, /child\.unref\(\)/);
|
||||
assert.match(source, /openBrowser: launchOpenBrowser/);
|
||||
assert.match(source, /launchOpenBrowser\(url\)/);
|
||||
})
|
||||
)
|
||||
passed++;
|
||||
|
||||
Reference in New Issue
Block a user