ui: remove dead imports, fix mock type

This commit is contained in:
Aaron Greenspan
2021-02-04 12:45:16 -07:00
committed by Aiden McClelland
parent a9735fd777
commit 808fff4187
3 changed files with 4 additions and 5 deletions

View File

@@ -277,7 +277,7 @@ async function mockGetAppLogs (): Promise<ReqRes.GetAppLogsRes> {
async function mockGetServerLogs (): Promise<ReqRes.GetServerLogsRes> {
await pauseFor(1000)
return mockApiServerLogs.join('\n')
return mockApiServerLogs
}
async function mockGetAppMetrics (): Promise<ReqRes.GetAppMetricsRes> {
@@ -619,7 +619,7 @@ const mockApiAppLogs: string[] = [
'****** FINISH *****',
]
const mockApiServerLogs: string[] = [
const mockApiServerLogs: string = [
'****** START *****',
'[ng] 「wdm」: Compiled successfully.',
'[ng] 「wdm」: Compiling...',
@@ -702,7 +702,7 @@ const mockApiServerLogs: string[] = [
'[ng] Date: 2019-12-26T14:23:13.812Z - Hash: 9342e11e6b8e16ad2f70',
'[ng] 114 unchanged chunks',
'****** FINISH *****',
]
].join('\n')
const mockApiAppMetricsV1: AppMetricsVersioned<2> = {
version: 2,