Skip to content

Commit

Permalink
Merge pull request #4007 from HeroicEric/use-isenabled
Browse files Browse the repository at this point in the history
[CLEANUP] Use `isEnabled` instead of `Ember.FEATURES` directly
  • Loading branch information
bmac committed Dec 17, 2015
2 parents 8a2af8f + 1eaafe4 commit 2a7106e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/relationships/belongs-to-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import setupStore from 'dummy/tests/helpers/store';
import Ember from 'ember';
import isEnabled from 'ember-data/-private/features';

import {module, test} from 'qunit';

Expand Down Expand Up @@ -1122,7 +1123,7 @@ test("Updated related link should take precedence over local data", function(ass
});
});

if (Ember.FEATURES.isEnabled('ds-references')) {
if (isEnabled('ds-references')) {

test("A belongsTo relationship can be reloaded using the reference if it was fetched via link", function(assert) {
var done = assert.async();
Expand Down

0 comments on commit 2a7106e

Please sign in to comment.