mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
fix unit tests
This commit is contained in:
parent
b4295cf521
commit
82b2cd4805
@ -41,7 +41,7 @@ describe('metrics', () => {
|
||||
metadata: {
|
||||
get: () => ({ attributes: { path: { columnName: 'path' } } }),
|
||||
},
|
||||
connection() {
|
||||
getConnection() {
|
||||
return {
|
||||
select() {
|
||||
return {
|
||||
@ -53,7 +53,7 @@ describe('metrics', () => {
|
||||
},
|
||||
},
|
||||
};
|
||||
strapi.db.connection.raw = raw;
|
||||
strapi.db.connection = { raw };
|
||||
|
||||
const { computeMetrics } = metricsService({ strapi });
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user