feat: longer default titleLengthLimit
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ const calculateValue = () => {
|
||||
requestRetry: parseInt(envs.REQUEST_RETRY) || 2, // 请求失败重试次数
|
||||
// 是否显示 Debug 信息,取值 boolean 'false' 'key' ,取值为 'false' false 时永远不显示,取值为 'key' 时带上 ?debug=key 显示
|
||||
debugInfo: envs.DEBUG_INFO || true,
|
||||
titleLengthLimit: parseInt(envs.TITLE_LENGTH_LIMIT) || 100,
|
||||
titleLengthLimit: parseInt(envs.TITLE_LENGTH_LIMIT) || 150,
|
||||
redis: {
|
||||
url: envs.REDIS_URL || 'redis://localhost:6379/',
|
||||
options: {
|
||||
|
||||
@@ -67,7 +67,7 @@ describe('template', () => {
|
||||
it(`long title`, async () => {
|
||||
const response = await request.get('/test/long');
|
||||
const parsed = await parser.parseString(response.text);
|
||||
expect(parsed.items[0].title.length).toBe(103);
|
||||
expect(parsed.items[0].title.length).toBe(153);
|
||||
});
|
||||
|
||||
it(`enclosure`, async () => {
|
||||
|
||||
Reference in New Issue
Block a user