@@ -154,7 +154,7 @@ describe('resolveDatabaseConfig', () => {
154154 } )
155155
156156 describe ( 'PostgreSQL dialect' , ( ) => {
157- it ( 'should use node- postgres driver when DATABASE_URL is set' , async ( ) => {
157+ it ( 'should use postgres-js driver when DATABASE_URL is set' , async ( ) => {
158158 process . env . DATABASE_URL = 'postgresql://user:pass@localhost:5432/db'
159159
160160 const nuxt = createMockNuxt ( )
@@ -164,14 +164,14 @@ describe('resolveDatabaseConfig', () => {
164164
165165 expect ( result ) . toMatchObject ( {
166166 dialect : 'postgresql' ,
167- driver : 'node- postgres' ,
167+ driver : 'postgres-js ' ,
168168 connection : {
169169 url : 'postgresql://user:pass@localhost:5432/db'
170170 }
171171 } )
172172 } )
173173
174- it ( 'should use node- postgres driver when POSTGRES_URL is set' , async ( ) => {
174+ it ( 'should use postgres-js driver when POSTGRES_URL is set' , async ( ) => {
175175 process . env . POSTGRES_URL = 'postgresql://user:pass@localhost:5432/db'
176176
177177 const nuxt = createMockNuxt ( )
@@ -181,14 +181,14 @@ describe('resolveDatabaseConfig', () => {
181181
182182 expect ( result ) . toMatchObject ( {
183183 dialect : 'postgresql' ,
184- driver : 'node- postgres' ,
184+ driver : 'postgres-js ' ,
185185 connection : {
186186 url : 'postgresql://user:pass@localhost:5432/db'
187187 }
188188 } )
189189 } )
190190
191- it ( 'should use node- postgres driver when POSTGRESQL_URL is set' , async ( ) => {
191+ it ( 'should use postgres-js driver when POSTGRESQL_URL is set' , async ( ) => {
192192 process . env . POSTGRESQL_URL = 'postgresql://user:pass@localhost:5432/db'
193193
194194 const nuxt = createMockNuxt ( )
@@ -198,7 +198,7 @@ describe('resolveDatabaseConfig', () => {
198198
199199 expect ( result ) . toMatchObject ( {
200200 dialect : 'postgresql' ,
201- driver : 'node- postgres' ,
201+ driver : 'postgres-js ' ,
202202 connection : {
203203 url : 'postgresql://user:pass@localhost:5432/db'
204204 }
0 commit comments