From 6f614db6e61aaafb1cfd277e2a2b7c4d89920fea Mon Sep 17 00:00:00 2001 From: Josh Betz Date: Sat, 23 Nov 2024 13:32:02 -0600 Subject: [PATCH] test: show set returns false if it fails --- __tests__/pool.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/__tests__/pool.ts b/__tests__/pool.ts index 296f11c..70dd9f7 100644 --- a/__tests__/pool.ts +++ b/__tests__/pool.ts @@ -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(); } );