Skip to content

Commit

Permalink
fix test scope for using co wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Jan 29, 2020
1 parent a351f96 commit 334e0ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node-tests/addon-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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();
});
Expand Down

0 comments on commit 334e0ee

Please sign in to comment.