ember-drag-drop icon indicating copy to clipboard operation
ember-drag-drop copied to clipboard

drag coordinator is undefined when running integration tests

Open drourke opened this issue 8 years ago • 1 comments

Currenlty working on writing tests for a compenent that is using draggable-object and draggable-object-target.

When the full app is running everything works as expected, but when I try and run ember integration tests things blow up on this line draggable-object-target.js#L10

drourke avatar Jun 22 '16 17:06 drourke

That's because the coordinator has not been injected into the testing environment. It is on my list to refactor this as a service. For now you'll have to manually inject it into your tests. See https://github.com/mharris717/ember-drag-drop/blob/master/app/initializers/coordinator-setup.js for how we inject it into the app. You'll have to do something similar to inject it into you're tests in the start-app helper. Or stub the coordinator out.

dgavey avatar Jun 22 '16 17:06 dgavey