interface IEditorModel {
timeDimension?: TimeDimension;
}
const defaultEditorModel: IEditorModel = {
timeDimension: undefined,
};
export class EditorModel extends Record(defaultEditorModel, "EditorModel") implements IEditorModel {
public constructor(values?: Partial<IEditorModel>) {
super(values);
}
}
const em = new EditorModel();
expect(em.timeDimension).toBeUndefined();
console.log(recordTransit.toJSON(em));
This code serializes
timeDimensiontonulleven though the firstexpectpasses. Any ideas why this is happening?