code: function () {
        _emberMetalDebug.assert('Calling reset() on instances of `Ember.Application` is not\n            supported when globals mode is disabled; call `visit()` to\n            create new `Ember.ApplicationInstance`s and dispose them\n            via their `destroy()` method instead.', this._globalsMode && this.autoboot);
  
        var instance = this.__deprecatedInstance__;
  
        this._readinessDeferrals = 1;
        this._bootPromise = null;
        this._bootResolver = null;
        this._booted = false;
  
        function handleReset() {
          _emberMetalRun_loop.default(instance, 'destroy');
          this._buildDeprecatedInstance();
          _emberMetalRun_loop.default.schedule('actions', this, '_bootSync');
        }
  
        _emberMetalRun_loop.default.join(this, handleReset);
      }
docs: Reset the application. This is typically used only in tests. It cleans up
  the application in the following order:
  1. Deactivate existing routes
  2. Destroy all objects in the container
  3. Create a new application container
  4. Re-route to the existing url
  Typical Example:
  ```javascript
  var App;
  run(function() {
  App = Ember.Application.create();
  });
  module('acceptance test', {
  setup: function() {
  App.reset();
  }
  });
  test('first test', function() {
  App is freshly reset
  });
  test('second test', function() {
  App is again freshly reset
  });
  ```
  Advanced Example:
  Occasionally you may want to prevent the app from initializing during
  setup. This could enable extra configuration, or enable asserting prior
  to the app becoming ready.
  ```javascript
  var App;
  run(function() {
  App = Ember.Application.create();
  });
  module('acceptance test', {
  setup: function() {
  run(function() {
  App.reset();
  App.deferReadiness();
  });
  }
  });
  test('first test', function() {
  ok(true, 'something before app is initialized');
  run(function() {
  App.advanceReadiness();
  });
  ok(true, 'something after app is initialized');
  });
  ```
  @method reset
  @public