From 334e0eebbf08581ccdf3a36c268cf1a041197376 Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Wed, 29 Jan 2020 09:38:24 -0800 Subject: [PATCH] fix test scope for using co wrap --- node-tests/addon-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node-tests/addon-test.js b/node-tests/addon-test.js index 9006fb8c..2aa579f2 100644 --- a/node-tests/addon-test.js +++ b/node-tests/addon-test.js @@ -1242,6 +1242,7 @@ describe('EmberData Packages Polyfill', function() { let unlink; beforeEach(function() { + let self = this; setupForVersion = co.wrap(function*(v) { let fixturifyProject = new FixturifyProject('whatever', '0.0.1'); fixturifyProject.addDependency('ember-data', v, addon => { @@ -1267,7 +1268,7 @@ describe('EmberData Packages Polyfill', function() { project = new EmberProject(root, pkg, cli.ui, cli); project.initializeAddons(); - this.addon = project.addons.find(a => { return a.name === 'ember-cli-babel'; }); + self.addon = project.addons.find(a => { return a.name === 'ember-cli-babel'; }); input = yield createTempDir(); });