i'm trying to testing a component with ChangeDetectorRef
constructor(private cdRef: ChangeDetectorRef) {}
And this is the spec file
import {RTLateralMenuComponent} from "./RTLateralMenu.component";
describe('RTLateralMenuComponent', () => {
let app: RTLateralMenuComponent;
beforeEach(()=>{
app = new RTLateralMenuComponent();
});
});
new RTLateralMenuComponent obviously expect an argument, but i don't how it works.