mirror of
https://github.com/unraid/api.git
synced 2026-01-04 15:39:52 -06:00
chore: Fix tests
Signed-off-by: Simon Fairweather <simon.n.fairweather@gmail.com>
This commit is contained in:
committed by
Pujit Mehrotra
parent
5fda8fc1e2
commit
01ecbbdf56
@@ -93,7 +93,21 @@ describe('CpuService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
cpuTopologyService = {
|
||||
generateCpuTotopology: vi.fn().mockResolvedValue({ id: 'info/cpu-topology' }),
|
||||
generateTopology: vi.fn().mockResolvedValue([
|
||||
[
|
||||
[0, 1],
|
||||
[2, 3],
|
||||
],
|
||||
[
|
||||
[4, 5],
|
||||
[6, 7],
|
||||
],
|
||||
]),
|
||||
generateTelemetry: vi.fn().mockResolvedValue({
|
||||
totalPower: 65.5,
|
||||
power: [32.5, 33.0],
|
||||
temp: [45.0, 46.0],
|
||||
}),
|
||||
} as any;
|
||||
|
||||
service = new CpuService(cpuTopologyService);
|
||||
|
||||
Reference in New Issue
Block a user