Skip to content

Testing: inconsistencies between Location and SpyLocation #27059

Closed

Description

@robisim74

🐞 bug report

Affected Package

The issue is caused by package @angular/common/testing

Is this a regression?

No, I think it never worked.

Description

🔥 Exception or Error

The different behavior breaks the tests.

🌍 Your Environment

Angular Version:

Angular CLI: 7.0.1
Node: 8.11.1
OS: win32 x64
Angular: 7.0.0

Anything else relevant?
There are unresolved issues related to these inconsistencies: #10963 and https://stackoverflow.com/questions/47484775/location-class-from-angular-common-doesnt-work-in-unit-tests

Thanks!

Activity

  1. added this to the needsTriage milestone on Nov 12, 2018
  2. modified the milestones: needsTriage, Backlog on Dec 5, 2018
  3. yggg commented on Jun 29, 2019

    @yggg

    Also, SpyLocation.path method always returns path with the fragment when Location has an includeHash parameter which is false by default.

  4. ondrasej commented on Jul 25, 2020

    @ondrasej

    Also, SpyLocation.path()returns only the path, but not the query. Location.path() returns the path and the query.

  5. added
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    and removed on Oct 1, 2020
  6. 7 remaining items

  7. angular-automatic-lock-bot commented on Oct 3, 2021

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: routerarea: testingIssues related to Angular testing features, such as TestBedfreq1: lowstate: confirmedtype: bug/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions