|
|
@@ -93,3 +93,10 @@ test('旧系统学习记录只在变化时原子写入,重复轮询不制造
|
|
|
assert.equal(writes[0][0].match.id, 9001);
|
|
|
assert.equal(writes[0][1].match.generalId, 9001);
|
|
|
});
|
|
|
+
|
|
|
+test('移动网关实时版本逻辑不引用运营网关的局部工具函数', () => {
|
|
|
+ const liveSource = gatewaySource.match(/const APP_LIVE_SCOPES=[\s\S]*?async function appLearningOverview/)?.[0];
|
|
|
+ assert.ok(liveSource, '未找到移动网关实时版本实现');
|
|
|
+ assert.doesNotMatch(liveSource, /\btext\(/);
|
|
|
+ assert.doesNotMatch(liveSource, /\bdateIso\(/);
|
|
|
+});
|