Skip to content

Commit 7fc8135

Browse files
andypolsjescalada
andauthored
Update test/db/mongo/repo.test.js
Co-authored-by: Juan Escalada <97265671+jescalada@users.noreply.github.com> Signed-off-by: Andy Pols <andy@pols.co.uk>
1 parent 97e3d7a commit 7fc8135

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/db/mongo/repo.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,10 @@ describe('MongoDB', () => {
6565
repoCollection.findOne.calledWith({ url: { $eq: 'https://github.com/finos/git-proxy.git' } }),
6666
).to.be.true;
6767
});
68+
69+
it('should handle invalid URLs gracefully', async () => {
70+
const result = await getRepoByUrl('invalid-url');
71+
expect(result).to.be.null;
72+
});
6873
});
6974
});

0 commit comments

Comments
 (0)