Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extraneous event-dispatcher wiring and a amd/require #1384

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions addon/tests/helpers/resolver.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { setRegistry } from '../../resolver';
import { setResolver, setApplication } from '@ember/test-helpers';
import require from 'require';
import App from '../../app';
import config from '../../config/environment';

Expand All @@ -25,15 +24,6 @@ export default {
};

export function createCustomResolver(registry) {
if (require.has('ember-native-dom-event-dispatcher')) {
// the raw value looked up by ember and these test helpers
registry['event_dispatcher:main'] =
require('ember-native-dom-event-dispatcher').default;
// the normalized value looked up
registry['event-dispatcher:main'] =
require('ember-native-dom-event-dispatcher').default;
}

return {
registry,
resolve(fullName) {
Expand Down