# SPA Unit testing using karma and jasmine

**URL:** <https://devforum.okta.com/t/spa-unit-testing-using-karma-and-jasmine/2355>\
**Category:** Questions\
**Created:** [August 7, 2018, 5:18am UTC](https://devforum.okta.com/t/spa-unit-testing-using-karma-and-jasmine/2355 "2018-08-07T05:18:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suniljntuk27](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@suniljntuk27](https://devforum.okta.com/u/suniljntuk27)\
**Post date:** [August 7, 2018, 5:18am UTC](https://devforum.okta.com/t/spa-unit-testing-using-karma-and-jasmine/2355/1 "2018-08-07T05:18:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 12, 2024, 10:50pm UTC](https://devforum.okta.com/t/spa-unit-testing-using-karma-and-jasmine/2355/2 "2024-01-12T22:50:53Z")

</div>


