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

Import require (avoid using global require). #198

Merged
merged 1 commit into from
Mar 4, 2017
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion lib/ember-test-helpers/build-registry.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* globals global, self, requirejs, require */
/* globals global, self, requirejs */

import require from 'require';
import Ember from 'ember';

function exposeRegistryMethodsWithoutDeprecations(container) {
Expand Down
3 changes: 2 additions & 1 deletion lib/ember-test-helpers/test-module-for-model.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* global DS, require, requirejs */ // added here to prevent an import from erroring when ED is not present
/* global DS, requirejs */ // added here to prevent an import from erroring when ED is not present

import require from 'require';
import TestModule from './test-module';
import Ember from 'ember';

Expand Down