11 lines
377 B
TypeScript
11 lines
377 B
TypeScript
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' }]));
|
|
} |