diff --git a/test/port/controller/HomeController/showTotal.test.ts b/test/port/controller/HomeController/showTotal.test.ts index 48316e33f..5e3edfbd9 100644 --- a/test/port/controller/HomeController/showTotal.test.ts +++ b/test/port/controller/HomeController/showTotal.test.ts @@ -69,10 +69,12 @@ describe('test/port/controller/HomeController/showTotal.test.ts', () => { await app.runSchedule(SavePackageVersionDownloadCounterPath); await app.runSchedule(UpdateTotalDataPath); + res = await app.httpRequest() .get('/'); assert(res.status === 200); data = res.body; + console.log(data); assert(data.last_package === '@cnpm/home2'); assert(data.last_package_version === '@cnpm/home1@1.0.1'); assert(data.doc_count === 2); diff --git a/test/repository/PackageRepository.test.ts b/test/repository/PackageRepository.test.ts index f5afbf7d1..1494d2339 100644 --- a/test/repository/PackageRepository.test.ts +++ b/test/repository/PackageRepository.test.ts @@ -39,6 +39,7 @@ describe('test/repository/PackageRepository.test.ts', () => { }, user); const res = await packageRepository.queryTotal(); // information_schema 只能返回大概值,仅验证增加 + console.log(res, packageCount, packageVersionCount); assert(res.packageCount > packageCount); assert(res.packageVersionCount > packageVersionCount); });