//Readonly
type MyReadonly<T> = {
readonly [K in keyof T]: T[K];
};
interface TodoRead {
title: string;
description: string;
}
const todoRead: MyReadonly<TodoRead> = {
title: 'Hey',
description: 'foobar',
};
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
MyService
]
});
service = TestBed.get(MyService);
const timeIntervals = 'timeIntervals';
Object.defineProperty(service, timeIntervals, { value: timeLists });
});
Object.defineProperty(service, timeIntervals, { writable: true});