Skip to content

Commit

Permalink
make getApplication public
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Mar 17, 2018
1 parent f12a43a commit c7c82f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon-test-support/@ember/test-helpers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { setResolver, getResolver } from './resolver';
export { setApplication } from './application';
export { getApplication, setApplication } from './application';
export {
default as setupContext,
getContext,
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/application-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { application, resolver } from '../helpers/resolver';
import { setApplication, setResolver, getResolver } from '@ember/test-helpers';
import { getApplication, setApplication, setResolver, getResolver } from '@ember/test-helpers';

module('application', function(hooks) {
hooks.beforeEach(function() {
Expand All @@ -26,6 +26,7 @@ module('application', function(hooks) {
actualResolver.isResolverFromTestHelpers,
'should not have used resolver created in tests/helpers/resolver.js'
);
assert.deepEqual(getApplication().constructor, application.constructor);
});

test('calling setApplication when a resolver is set does not clobber existing resolver', function(assert) {
Expand Down

0 comments on commit c7c82f5

Please sign in to comment.