Skip to content

Commit

Permalink
fix(ci): 测试时使用 unix 时间戳
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Dec 10, 2019
1 parent 3723a62 commit 5d1edd0
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 161 deletions.
4 changes: 3 additions & 1 deletion src/Generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ export class Generator {
},
{
label: '更新时间',
value: `\`${formatDate(interfaceInfo.up_time, 'YYYY-MM-DD HH:mm:ss')}\``,
value: process.env.JEST_WORKER_ID // 测试时使用 unix 时间戳
? String(interfaceInfo.up_time)
: `\`${formatDate(interfaceInfo.up_time, 'YYYY-MM-DD HH:mm:ss')}\``,
},
]
const interfaceExtraComments: string = interfaceSummary
Expand Down
Loading

0 comments on commit 5d1edd0

Please sign in to comment.