feat: 完成现有小程序接口的全部迁移至新后端
This commit is contained in:
@@ -12,6 +12,8 @@ test('日志为单行 JSON,递归脱敏并安全处理循环对象与 bigint',
|
||||
nested.self = nested;
|
||||
logger.log('test_event', {
|
||||
authorization: 'Bearer private-token',
|
||||
qiniuAk: 'private-ak',
|
||||
QINIU_SK: 'private-sk',
|
||||
nested,
|
||||
body: { code: 'login-secret' },
|
||||
});
|
||||
@@ -23,6 +25,8 @@ test('日志为单行 JSON,递归脱敏并安全处理循环对象与 bigint',
|
||||
assert.equal(log.context.nested.self, '[Circular]');
|
||||
assert.equal(log.context.nested.amount, '9');
|
||||
assert.equal(log.context.body, '[REDACTED]');
|
||||
assert.equal(log.context.qiniuAk, '[REDACTED]');
|
||||
assert.equal(log.context.QINIU_SK, '[REDACTED]');
|
||||
assert.ok(!output[0]!.includes('private-'));
|
||||
assert.ok(!output[0]!.includes('login-secret'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user