Skip to content

Commit

Permalink
Added additional test to check to see if connecting with just a port …
Browse files Browse the repository at this point in the history
…would work.
  • Loading branch information
kylefarris committed Jul 3, 2024
1 parent 422b726 commit 5c6ac08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,13 @@ describe('Initialized NodeClam module', () => {
});
expect(clamscan.scanner).to.eq('clamdscan'); // Verify that the scanner did not fall back to another binary
});

it('should initialize with only a port (no host or socket provided)', async () => {
expect(resetClam({
preference: 'clamdscan',
clamdscan: { host: null, port: config.clamdscan.port },
})).to.not.be.rejectedWith(Error);
});
});

describe('_buildClamFlags', () => {
Expand Down

0 comments on commit 5c6ac08

Please sign in to comment.