t
This commit is contained in:
parent
4c4e767ec6
commit
9d70afb4cc
42 changed files with 1266 additions and 630 deletions
|
|
@ -11,12 +11,15 @@ const {renderApacheBridge}=require('../server/apache-bridge');
|
|||
const app=fs.readFileSync(require.resolve('../app.js'),'utf8');
|
||||
const php=fs.readFileSync(require.resolve('../api-bridge.php'),'utf8');
|
||||
assert.match(runtime,/api-bridge\.php/);
|
||||
assert.match(runtime,/realtimeTransport:'http-poll'/);
|
||||
assert.match(runtime,/realtimeTransport:'auto'/);
|
||||
assert.match(app,/\/api\/realtime\/connect/);
|
||||
assert.match(app,/\/api\/realtime\/poll/);
|
||||
assert.match(app,/x-linkfield-authorization/);
|
||||
assert.match(app,/wait:bridge\?'0':'20000'/);
|
||||
assert.match(php,/\.linkfield-port/);
|
||||
assert.match(php,/X-LinkField-Authorization/i);
|
||||
assert.doesNotMatch(php,/file_get_contents\('php:\/\/input'\)/);
|
||||
assert.match(php,/php:\/\/temp\/maxmemory:1048576/);
|
||||
assert.match(renderApacheBridge(4312),/api-bridge\.php\?path=\/api\/\$1 \[QSA,L\]/);
|
||||
const phpCheck=spawnSync('php',['-l',require.resolve('../api-bridge.php')],{encoding:'utf8'});
|
||||
if(!phpCheck.error)assert.equal(phpCheck.status,0,phpCheck.stderr||phpCheck.stdout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue