This commit is contained in:
Bastian Wagner
2024-11-28 16:59:23 +01:00
parent 6b933a0400
commit 819af7455b
7 changed files with 53 additions and 28 deletions

View File

@@ -0,0 +1,11 @@
import { of } from "rxjs";
export class MockApiService {
getCylinders = jest.fn().mockReturnValue(of([{ name: 'Cylinder 1' }]));
getKeys = jest.fn().mockReturnValue(of([{ name: 'Key 1' }]));
deleteKey = jest.fn().mockReturnValue(of({}));
updateKey = jest.fn().mockReturnValue(
of([])
);
getKeyArchive = jest.fn().mockReturnValue(of([{ name: 'Key 1' }]));
}