From 6fc967113bddc8c5c6d1d508347d2e19d7c3dcad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=9D?= Date: Thu, 17 Aug 2023 19:28:38 +0800 Subject: [PATCH] test: fix test changed --- .../service/PackageSyncerService/executeTask.test.ts | 12 ++++++------ .../PackageSyncController/showSyncTask.test.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/core/service/PackageSyncerService/executeTask.test.ts b/test/core/service/PackageSyncerService/executeTask.test.ts index 98790679..ab08dc62 100644 --- a/test/core/service/PackageSyncerService/executeTask.test.ts +++ b/test/core/service/PackageSyncerService/executeTask.test.ts @@ -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(); }); @@ -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(); }); @@ -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); @@ -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(); }); @@ -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) @@ -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) diff --git a/test/port/controller/PackageSyncController/showSyncTask.test.ts b/test/port/controller/PackageSyncController/showSyncTask.test.ts index 7c9a96e7..a011daf5 100644 --- a/test/port/controller/PackageSyncController/showSyncTask.test.ts +++ b/test/port/controller/PackageSyncController/showSyncTask.test.ts @@ -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()