2
@Injectable({
  providedIn: 'root'
})

export class TestService {
  static testMethod(data: any, file: string) {
    // do some stuff
  }
}
uminder
  • 23,831
  • 5
  • 37
  • 72
Jojo
  • 21
  • 1
  • 1
    It 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

0 Answers0