export class AddRouteComponent implements OnInit {
workforce: Workforce;
save() {
workforce = new Workforce();
workforce.name = form.controls.value("name");
}
}
This is obviously a simplified version of what I'm trying to test. I'd like to write a jasmine test that has workforce equal a const of the object so I can properly test all properties of that object. Normally I'd have component.workforce = testWorkforce, but the new Workforce doesn't allow this to work.
Is there a way to do this?