Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Only add hash when not in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwi-josh committed Apr 30, 2019
1 parent 7a88b3b commit d05401f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/href-to.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Ember from "ember";
import LinkComponent from '@ember/routing/link-component';
import { isPresent } from "@ember/utils";

Expand Down Expand Up @@ -140,8 +141,7 @@ export default class {
let router = this._getRouter();
let rootURL = router.get('rootURL');

// Add the hash to the front of the url if we are in native app build
if (this.isNativeBuild()) {
if (this.isNativeBuild() && !Ember.testing) {
rootURL = '#' + rootURL;
}

Expand Down

0 comments on commit d05401f

Please sign in to comment.