Skip to content

Commit

Permalink
test: fix test changed
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl committed Aug 17, 2023
1 parent dd1326f commit 6fc9671
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions test/core/service/PackageSyncerService/executeTask.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ describe('test/core/service/PackageSyncerService/executeTask.test.ts', () => {
assert(stream);
const log = await TestUtil.readStreamToLog(stream);
// console.log(log);
assert(log.includes('] 🟒🟒🟒🟒🟒'));
assert(log.includes('] πŸ”—'));
app.mockAgent().assertNoPendingInterceptors();
});

Expand Down Expand Up @@ -333,7 +333,7 @@ describe('test/core/service/PackageSyncerService/executeTask.test.ts', () => {
assert(stream);
const log = await TestUtil.readStreamToLog(stream);
// console.log(log);
assert(log.includes('] 🟒🟒🟒🟒🟒'));
assert(log.includes('] πŸ”—'));
app.mockAgent().assertNoPendingInterceptors();
});

Expand Down Expand Up @@ -1161,7 +1161,7 @@ describe('test/core/service/PackageSyncerService/executeTask.test.ts', () => {
assert(stream);
const log = await TestUtil.readStreamToLog(stream);
// console.log(log);
assert(log.includes('] 🟒🟒🟒🟒🟒 https://registry.npmjs.org/cnpmcore-test-sync-deprecated'));
assert(log.includes('] πŸ”— https://registry.npmjs.org/cnpmcore-test-sync-deprecated'));
const { data } = await packageManagerService.listPackageFullManifests('', name);
assert(data!.readme === 'mock readme content');
assert(data!.versions['0.0.0']!.readme === undefined);
Expand Down Expand Up @@ -1633,7 +1633,7 @@ describe('test/core/service/PackageSyncerService/executeTask.test.ts', () => {
const log = await TestUtil.readStreamToLog(stream);
// console.log(log);
assert(log.includes('πŸ“– Use the latest version(0.0.0) maintainers instead'));
assert(log.includes('] 🟒🟒🟒🟒🟒 '));
assert(log.includes('] πŸ”—'));
app.mockAgent().assertNoPendingInterceptors();
});

Expand Down Expand Up @@ -1716,7 +1716,7 @@ describe('test/core/service/PackageSyncerService/executeTask.test.ts', () => {
const log = await TestUtil.readStreamToLog(stream);
// console.log(log);
assert(log.includes('🚧🚧🚧🚧🚧 Syncing from https://registry.npmjs.org/D, '));
assert(log.includes('🟒🟒🟒🟒🟒'));
assert(log.includes('πŸ”—'));
const res = await app.httpRequest()
.get(`/${name}`)
.expect(200)
Expand Down Expand Up @@ -1748,7 +1748,7 @@ describe('test/core/service/PackageSyncerService/executeTask.test.ts', () => {
const log = await TestUtil.readStreamToLog(stream);
// console.log(log);
assert(log.includes('🚧🚧🚧🚧🚧 Syncing from https://registry.npmjs.org/Buffer, '));
assert(log.includes('🟒🟒🟒🟒🟒'));
assert(log.includes('πŸ”—'));
const res = await app.httpRequest()
.get(`/${name}`)
.expect(200)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe('test/port/controller/PackageSyncController/showSyncTask.test.ts', () =
assert.equal(res.status, 302);
log = await TestUtil.readStreamToLog(res.headers.location);
}
assert.match(log, /🟒🟒🟒🟒🟒/);
assert.match(log, /πŸ”—/);

// check hasInstallScript
res = await app.httpRequest()
Expand Down

0 comments on commit 6fc9671

Please sign in to comment.