SPA Unit testing using karma and jasmine

We are using Okta sing in widget for authentication. I’am trying to write the unit test case for okta signin widget in my SPA with Okta. how do I can write test cases to cover the Component which is having the okta sign in widget.we are using Karma & jasmine to write the test cases.