Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Feb 8, 2025
1 parent 460a7d8 commit f8be53c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"devDependencies": {
"@cnpmjs/npm-cli-login": "^1.1.0",
"@eggjs/bin": "^7.1.0",
"@eggjs/mock": "^6.0.5",
"@eggjs/mock": "^6.0.7",
"@elastic/elasticsearch-mock": "^2.0.0",
"@simplewebauthn/typescript-types": "^7.0.0",
"@types/lodash": "^4.14.196",
Expand Down
4 changes: 1 addition & 3 deletions test/core/service/ProxyCacheService.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import assert from 'node:assert';
import { app, mock } from '@eggjs/mock/bootstrap';
import { Context } from 'egg';
import { TestUtil } from '../../TestUtil';
import { ProxyCacheService } from '../../../app/core/service/ProxyCacheService';
import { ProxyCacheRepository } from '../../../app/repository/ProxyCacheRepository';
Expand All @@ -23,8 +22,7 @@ describe('test/core/service/ProxyCacheService/index.test.ts', () => {
const name = 'cnpmcore-test-sync-blocklist';
mock(app.config.cnpmcore, 'syncPackageBlockList', [ name ]);
try {
// TODO(fengmk2): extend module, beginModuleScope, getEggObject on tegg
await proxyCacheService.getPackageVersionTarResponse(name, app.mockContext() as Context);
await proxyCacheService.getPackageVersionTarResponse(name, app.mockContext());
} catch (error) {
assert(error.options.message.includes('block list'));
}
Expand Down

0 comments on commit f8be53c

Please sign in to comment.