---
title: "Discussion on \"Testing a component depending on  ActivatedRoute's queryParamMap object\" | Hashnode"
description: "Discussion on \"Testing a component depending on  ActivatedRoute's queryParamMap object\". Use jasmine spy and the RouterTestingModule"
url: "https://hashnode.com/posts/testing-a-component-depending-on-activatedroutes-queryparammap-object/615cff41e16040649ad7dff0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Testing a component depending on ActivatedRoute's queryParamMap object](https://aliasger.dev/testing-a-component-depending-on-activatedroutes-queryparammap-object?utm_source=hashnode&utm_medium=feed)

Use jasmine spy and the RouterTestingModule

Oct 6, 2021 · 2 min read · aliasger.dev  
Read the article

-   [#angular](https://hashnode.com/tag/angular)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)

## Written by

[Aliasger Jaffer](https://hashnode.com/@aliasger)

@aliasger · Toronto, Ontario

  
[View profile](https://hashnode.com/@aliasger)

Senior Developer - .NET and Angular

I am a developer from Toronto, Canada and I enjoy writing about JavaScript, Angular and the .NET framework.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
