We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e3d7a commit 7fc8135Copy full SHA for 7fc8135
test/db/mongo/repo.test.js
@@ -65,5 +65,10 @@ describe('MongoDB', () => {
65
repoCollection.findOne.calledWith({ url: { $eq: 'https://github.com/finos/git-proxy.git' } }),
66
).to.be.true;
67
});
68
+
69
+ it('should handle invalid URLs gracefully', async () => {
70
+ const result = await getRepoByUrl('invalid-url');
71
+ expect(result).to.be.null;
72
+ });
73
74
0 commit comments