From 6dafd657a677ab3a6a22f1fbb5eb4ef594989c50 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Wed, 27 Jan 2021 17:52:11 +0100 Subject: [PATCH] test-support/setup-link: Remove "integration test" assertion This assertion is no longer valid because https://github.com/emberjs/ember.js/pull/19080 changed the behavior in Ember.js so that rendering tests can have routing enabled too --- addon-test-support/setup-link.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addon-test-support/setup-link.ts b/addon-test-support/setup-link.ts index 273af598..53796c00 100644 --- a/addon-test-support/setup-link.ts +++ b/addon-test-support/setup-link.ts @@ -6,13 +6,6 @@ import TestInstrumentedLinkManagerService from './-private/services/test-instrum export default function setupLink(hooks: NestedHooks) { hooks.beforeEach(function (this: TestContext) { - const router = this.owner.lookup('service:router'); - - assert( - 'ember-link.setupLink: Test helpers can only be used in integration tests', - !router._router._routerMicrolib - ); - assert( 'ember-link.setupLink: You have already called `setupLink` once', !this.owner.hasRegistration('service:link-manager') ||