Skip to content

Commit

Permalink
Fix deprecations for run.* method access.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Mar 19, 2021
1 parent 9c14278 commit 737eb8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test-debug-info-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { _backburner, run } from '@ember/runloop';
import { _backburner, later, cancel } from '@ember/runloop';
import {
TestDebugInfo,
backburnerDebugInfoAvailable,
Expand Down Expand Up @@ -56,7 +56,7 @@ module('TestDebugInfo', function (hooks) {
});

hooks.afterEach(function () {
cancelIds.forEach(cancelId => run.cancel(cancelId));
cancelIds.forEach(cancelId => cancel(cancelId));

_backburner.DEBUG = false;

Expand All @@ -66,8 +66,8 @@ module('TestDebugInfo', function (hooks) {
test('summary returns full information when debugInfo is present', function (assert) {
assert.expect(1);

cancelIds.push(run.later(() => {}, 5000));
cancelIds.push(run.later(() => {}, 10000));
cancelIds.push(later(() => {}, 5000));
cancelIds.push(later(() => {}, 10000));

let testDebugInfo = new TestDebugInfo(
{
Expand Down

0 comments on commit 737eb8b

Please sign in to comment.