feat: 完善模板内容后台配置能力
This commit is contained in:
1 parent
2bc2193b44
commit
9266ec824a
37 files changed
+2273
-63
No files matched your search
@@ -25,7 +25,11 @@ test("compiler generates an isolated Acheng runtime manifest", () => {
|
||||
});
|
||||
const app = JSON.parse(fs.readFileSync(path.join(output, "app.json"), "utf8"));
|
||||
const runtime = JSON.parse(fs.readFileSync(path.join(output, "template.runtime.json"), "utf8"));
|
||||
assert.equal(app.window.navigationBarTitleText, "阿成校园餐");
|
||||
assert.equal(app.window.navigationBarTitleText, "品牌首页");
|
||||
assert.match(
|
||||
fs.readFileSync(path.join(output, "pages/index/index.js"), "utf8"),
|
||||
/setNavigationBarTitle/,
|
||||
);
|
||||
assert.equal(runtime.packageKey, "acheng-campus-food");
|
||||
assert.equal(runtime.entrypoints.home, "pages/index/index");
|
||||
assert.match(fs.readFileSync(path.join(output, "runtime-config.js"), "utf8"), /default-brand/);
|
||||
|
||||
Reference in new issue
Block a user