import { createOptions, TestProjectId, setupTokens } from '../test.config'; import { WaterAccumulationService } from '../api/waterAccumulation.service'; jest.setTimeout(10000); const factory = createOptions(); const service = new WaterAccumulationService(factory); beforeAll(async () => { await setupTokens(); }); test('获取全部用水监测', async () => { const result = await service.loadWaterMonitoringOfAll(TestProjectId); console.log(result); }); test('获取按月用水监测', async () => { const result = await service.loadWaterMonitoringOfMonth(TestProjectId,'2019','7'); console.log(result); }); test('获取每月用水量-全部', async () => { const result = await service.loadWaterList(TestProjectId); console.log(result); });