Skip to content

Commit

Permalink
chore: debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
elrrrrrrr committed Jan 21, 2023
1 parent 3932081 commit 8de7c92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/port/controller/HomeController/showTotal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions test/repository/PackageRepository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 8de7c92

Please sign in to comment.