import { createOptions, setupTokens} from "../test.config"; import { CustomYcService } from "../api/customYC.service"; import { async } from "q"; jest.setTimeout(10000); const factory = createOptions(); const service = new CustomYcService(factory); beforeAll(async () => { await setupTokens(); console.log('tokens are loaded'); }) test('加载检测报警分类统计', async () => { const result = await service.loadCustomYcAlarmType(); console.log('loadCustomYcAlarmTypes数据', result); }) test('预警报告统计图', async () => { const result = await service.loadCustomYcAlarmHand(); console.log('预警报告统计图数据', result); }) test('欢迎页接口请求', async( ) => { const result = await service.loadCustomYcInfo(6); console.log('欢迎页接口请求数据', result); }) test('检测数据统计', async( ) => { const result = await service.loadCustomYcLineData(6, 'jqjCzDHBOz7zcY-oZ52A4ER6ZLGapeYxsGvQ5VYb'); console.log('检测数据统计数据', result); })