Files
weiguang-jewelry-ledger/新账系统/e2e/writes/sync-fixture.cjs
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
378 B
JavaScript
Raw Normal View History

// 只用于这一个启用同步的临时账套。令飞书验证返回可控错误,核对页面反馈。
const assert = require('node:assert/strict');
global.fetch = async function (url) {
assert.equal(String(url), 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal');
return Response.json({ code: 12345, msg: '逐笔对照模拟同步失败' });
};