Skip to content

Commit 188510e

Browse files
authored
test: removing a defunct test
Signed-off-by: Kris West <kristopher.west@natwest.com>
1 parent 5a4e478 commit 188510e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

test/db/file/repo.test.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,6 @@ describe('File DB', () => {
4242
expect(result).to.deep.equal(repoData);
4343
});
4444

45-
it('should get the repo using the url, stripping off the .git', async () => {
46-
const repoData = {
47-
name: 'sample',
48-
users: { canPush: [] },
49-
url: 'https://github.com/finos/git-proxy.git',
50-
};
51-
52-
sandbox.stub(repoModule.db, 'findOne').callsFake((query, cb) => cb(null, repoData));
53-
54-
const result = await repoModule.getRepoByUrl('https://github.com/finos/git-proxy.git');
55-
56-
expect(
57-
repoModule.db.findOne.calledWith(
58-
sinon.match({ url: 'https://github.com/finos/git-proxy.git' }),
59-
),
60-
).to.be.true;
61-
expect(result).to.deep.equal(repoData);
62-
});
6345

6446
it('should return null if the repo is not found', async () => {
6547
sandbox.stub(repoModule.db, 'findOne').callsFake((query, cb) => cb(null, null));

0 commit comments

Comments
 (0)