From 8e19acfd1934bdf528d0c767677c785c676bc07b Mon Sep 17 00:00:00 2001 From: Ruslan Hrabovyi Date: Mon, 28 Oct 2019 03:28:09 +0200 Subject: [PATCH] move visitable to run --- addon-test-support/properties/visitable.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/addon-test-support/properties/visitable.js b/addon-test-support/properties/visitable.js index c6539f77..65c38959 100644 --- a/addon-test-support/properties/visitable.js +++ b/addon-test-support/properties/visitable.js @@ -1,5 +1,5 @@ import { assign } from '../-private/helpers'; -import { getExecutionContext } from '../-private/execution_context'; +import run from '../-private/run'; import $ from '-jquery'; @@ -95,16 +95,15 @@ export function visitable(path) { get() { return function(dynamicSegmentsAndQueryParams = {}) { - let executionContext = getExecutionContext(this); - return executionContext.runAsync((context) => { + return run(this, ({ visit }) => { let params = assign({}, dynamicSegmentsAndQueryParams); let fullPath = fillInDynamicSegments(path, params); fullPath = appendQueryParams(fullPath, params); - return context.visit(fullPath); - }); + return visit(fullPath); + }) } } };