fix unit tests

This commit is contained in:
Pierre Noël 2022-11-17 12:01:09 +01:00
parent b4295cf521
commit 82b2cd4805

View File

@ -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 });