@Injectable({
providedIn: 'root'
})
export class TestService {
static testMethod(data: any, file: string) {
// do some stuff
}
}
Asked
Active
Viewed 207 times
2
-
1It depends on what your static method does. In a standard case, you would invoke it and then compare the expected result with the actual result. – uminder May 11 '20 at 15:31
-
Static function in my case is executing some line of code. It's not returning anything. – Jojo May 11 '20 at 15:38