Skip to content

Commit

Permalink
test-support/setup-link: Remove "integration test" assertion
Browse files Browse the repository at this point in the history
This assertion is no longer valid because emberjs/ember.js#19080 changed the behavior in Ember.js so that rendering tests can have routing enabled too
  • Loading branch information
Turbo87 committed Jan 27, 2021
1 parent 534832f commit 6dafd65
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions addon-test-support/setup-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') ||
Expand Down

0 comments on commit 6dafd65

Please sign in to comment.