mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
c45e28ab53
* refactor * redundant `implements` * simplify * remove `enabled`
30 lines
727 B
TypeScript
30 lines
727 B
TypeScript
import { IMetricRepository } from 'src/interfaces/metric.interface';
|
|
|
|
export const newMetricRepositoryMock = (): jest.Mocked<IMetricRepository> => {
|
|
return {
|
|
api: {
|
|
addToCounter: jest.fn(),
|
|
addToGauge: jest.fn(),
|
|
addToHistogram: jest.fn(),
|
|
configure: jest.fn(),
|
|
},
|
|
host: {
|
|
addToCounter: jest.fn(),
|
|
addToGauge: jest.fn(),
|
|
addToHistogram: jest.fn(),
|
|
configure: jest.fn(),
|
|
},
|
|
jobs: {
|
|
addToCounter: jest.fn(),
|
|
addToGauge: jest.fn(),
|
|
addToHistogram: jest.fn(),
|
|
configure: jest.fn(),
|
|
},
|
|
repo: {
|
|
addToCounter: jest.fn(),
|
|
addToGauge: jest.fn(),
|
|
addToHistogram: jest.fn(),
|
|
configure: jest.fn(),
|
|
},
|
|
};
|
|
};
|