@@ -0,0 +1,14 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import test from "node:test";
|
||||
|
||||
test("测试部署覆盖 91 短剧服务并使用相同包名", () => {
|
||||
const deploy = readFileSync(new URL("../deploy_test.sh", import.meta.url), "utf8");
|
||||
const run = readFileSync(new URL("../deploy/run.sh", import.meta.url), "utf8");
|
||||
assert.match(deploy, /\/server\/web_91dj\/h5/);
|
||||
assert.match(deploy, /web_91dj_h5\.tar\.gz/);
|
||||
assert.match(deploy, /bash run\.sh/);
|
||||
assert.match(run, /APP_DIR=\/server\/web_91dj\/h5/);
|
||||
assert.match(run, /APP_NAME=web_91dj_h5/);
|
||||
assert.match(run, /PORT=21021/);
|
||||
});
|
||||
Reference in New Issue
Block a user