Skip to content

Commit 3afa917

Browse files
committed
chore: improve default repo creation test
1 parent cf16aef commit 3afa917

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/testProxyRoute.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,9 @@ describe('proxy express application', async () => {
579579
await proxy.stop();
580580
await proxy.start();
581581

582-
const repo3 = await db.getRepoByUrl(TEST_DEFAULT_REPO.url);
583-
expect(repo3).to.not.be.null;
584-
expect(repo3._id).to.equal(repo2._id);
582+
const allRepos = await db.getRepos();
583+
const matchingRepos = allRepos.filter((r) => r.url === TEST_DEFAULT_REPO.url);
584+
585+
expect(matchingRepos).to.have.length(1);
585586
});
586587
});

0 commit comments

Comments
 (0)