From 3db9f341a6ff5f9a39668e7bf2d022cd2e9df164 Mon Sep 17 00:00:00 2001 From: "raoha.rh" Date: Tue, 30 Jan 2024 15:57:15 +0800 Subject: [PATCH] fix: test case --- test/PoolConfig.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/PoolConfig.test.ts b/test/PoolConfig.test.ts index a950cca..dce5dc2 100644 --- a/test/PoolConfig.test.ts +++ b/test/PoolConfig.test.ts @@ -78,10 +78,9 @@ describe('test/PoolConfig.test.ts', () => { }); describe('new RDSClient(options.getConnectionConfig)', () => { - it('should get connection config from newConnectionConfig()', async () => { + it('should get connection config from connectionConfig', async () => { assert.equal(db.pool.config.database, undefined); - assert.equal(index, 1); - assert.equal((db.pool.config as any).connectionConfig.database, config.database); + assert.equal(index, 2); }); it('should connect rds success', async () => {