Skip to content

Commit

Permalink
Merge pull request #13 from joshbetz/update/tests
Browse files Browse the repository at this point in the history
test: show set returns false if it fails
  • Loading branch information
joshbetz authored Nov 23, 2024
2 parents f73c2b7 + 6f614db commit 21509c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe( 'pool', () => {

it( 'should return false if no hosts exist', async () => {
const pool = new Pool( 12345, 'invalid-host' );
expect( await pool.set( 'test', 'test' ) ).toBe( false );
expect( pool.get( 'invalid-host' ) ).resolves.toBe( false );
await pool.end();
} );
Expand Down

0 comments on commit 21509c4

Please sign in to comment.