I want to test a variable function of a void function. How can I get that local variable in the test? function:
save(){
const stringTest="test";
}
test:
test("variable should be equal to "test" ", () => {
component.save();
//test stringTest from save function that is equal to "test"
});