ember-source 4.3.0-beta.1 → 4.4.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/blueprints/acceptance-test/mocha-files/tests/acceptance/__name__-test.js +4 -4
  2. package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.js +2 -2
  3. package/blueprints/acceptance-test/qunit-files/tests/acceptance/__name__-test.js +2 -2
  4. package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +2 -2
  5. package/blueprints/component/index.js +2 -2
  6. package/blueprints/component-class/index.js +2 -2
  7. package/blueprints/component-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +4 -4
  8. package/blueprints/component-test/mocha-files/__root__/__testType__/__path__/__test__.js +7 -5
  9. package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +4 -4
  10. package/blueprints/component-test/qunit-files/__root__/__testType__/__path__/__test__.js +4 -4
  11. package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +4 -4
  12. package/blueprints/controller/files/__root__/__path__/__name__.js +1 -2
  13. package/blueprints/controller-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +2 -2
  14. package/blueprints/controller-test/mocha-files/__root__/__testType__/__path__/__test__.js +5 -3
  15. package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  16. package/blueprints/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js +1 -1
  17. package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  18. package/blueprints/helper/files/__root__/__collection__/__name__.js +1 -1
  19. package/blueprints/helper/mu-files/__root__/__collection__/__name__.js +1 -1
  20. package/blueprints/helper-test/mocha-0.12-files/__root__/__testType__/__collection__/__name__-test.js +3 -3
  21. package/blueprints/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js +6 -4
  22. package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +2 -2
  23. package/blueprints/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js +2 -2
  24. package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +2 -2
  25. package/blueprints/initializer/files/__root__/initializers/__name__.js +2 -3
  26. package/blueprints/initializer-test/mocha-files/__root__/__testType__/__path__/__name__-test.js +6 -7
  27. package/blueprints/initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +5 -5
  28. package/blueprints/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +3 -4
  29. package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.js +2 -3
  30. package/blueprints/instance-initializer-test/mocha-files/__root__/__testType__/__path__/__name__-test.js +5 -5
  31. package/blueprints/instance-initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +5 -5
  32. package/blueprints/instance-initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +2 -2
  33. package/blueprints/mixin/files/__root__/mixins/__name__.js +1 -2
  34. package/blueprints/mixin-test/mocha-files/__root__/__testType__/__name__-test.js +2 -2
  35. package/blueprints/mixin-test/mocha-rfc-232-files/__root__/__testType__/__name__-test.js +2 -2
  36. package/blueprints/mixin-test/qunit-files/__root__/__testType__/__name__-test.js +1 -1
  37. package/blueprints/mixin-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +1 -1
  38. package/blueprints/route/files/__root__/__path__/__name__.js +2 -2
  39. package/blueprints/route-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +2 -2
  40. package/blueprints/route-test/mocha-files/__root__/__testType__/__path__/__test__.js +5 -3
  41. package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  42. package/blueprints/route-test/qunit-files/__root__/__testType__/__path__/__test__.js +1 -1
  43. package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  44. package/blueprints/service/files/__root__/__path__/__name__.js +1 -2
  45. package/blueprints/service-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +2 -2
  46. package/blueprints/service-test/mocha-files/__root__/__testType__/__path__/__test__.js +5 -3
  47. package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  48. package/blueprints/service-test/qunit-files/__root__/__testType__/__path__/__test__.js +1 -1
  49. package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
  50. package/blueprints/util-test/mocha-files/__root__/__testType__/__name__-test.js +2 -2
  51. package/blueprints/util-test/mocha-rfc-232-files/__root__/__testType__/__name__-test.js +2 -2
  52. package/blueprints/util-test/qunit-files/__root__/__testType__/__name__-test.js +1 -1
  53. package/blueprints/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +2 -3
  54. package/build-metadata.json +3 -3
  55. package/dist/dependencies/router_js.js +1 -1
  56. package/dist/ember-template-compiler.js +17 -144
  57. package/dist/ember-template-compiler.map +1 -1
  58. package/dist/ember-testing.js +4 -2
  59. package/dist/ember-testing.map +1 -1
  60. package/dist/ember.debug.js +843 -772
  61. package/dist/ember.debug.map +1 -1
  62. package/dist/header/license.js +1 -1
  63. package/dist/packages/@ember/-internals/container/index.js +3 -3
  64. package/dist/packages/@ember/-internals/glimmer/index.js +55 -29
  65. package/dist/packages/@ember/-internals/metal/index.js +18 -28
  66. package/dist/packages/@ember/-internals/routing/lib/location/hash_location.js +1 -1
  67. package/dist/packages/@ember/-internals/routing/lib/services/router.js +67 -12
  68. package/dist/packages/@ember/-internals/routing/lib/services/routing.js +2 -0
  69. package/dist/packages/@ember/-internals/routing/lib/system/generate_controller.js +3 -1
  70. package/dist/packages/@ember/-internals/routing/lib/system/route.js +16 -9
  71. package/dist/packages/@ember/-internals/routing/lib/system/router.js +15 -20
  72. package/dist/packages/@ember/-internals/routing/lib/utils.js +2 -1
  73. package/dist/packages/@ember/-internals/runtime/lib/compare.js +19 -5
  74. package/dist/packages/@ember/-internals/runtime/lib/mixins/comparable.js +4 -4
  75. package/dist/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +29 -29
  76. package/dist/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +51 -50
  77. package/dist/packages/@ember/-internals/utils/index.js +1 -1
  78. package/dist/packages/@ember/application/instance.js +3 -3
  79. package/dist/packages/@ember/canary-features/index.js +6 -14
  80. package/dist/packages/@ember/debug/lib/capture-render-tree.js +2 -0
  81. package/dist/packages/@ember/debug/lib/handlers.js +1 -1
  82. package/dist/packages/@ember/runloop/index.js +31 -528
  83. package/dist/packages/@ember/runloop/type-tests.ts/begin-end.test.js +5 -0
  84. package/dist/packages/@ember/runloop/type-tests.ts/bind.test.js +59 -0
  85. package/dist/packages/@ember/runloop/type-tests.ts/cancel.test.js +5 -0
  86. package/dist/packages/@ember/runloop/type-tests.ts/debounce.test.js +77 -0
  87. package/dist/packages/@ember/runloop/type-tests.ts/join.test.js +38 -0
  88. package/dist/packages/@ember/runloop/type-tests.ts/later.test.js +38 -0
  89. package/dist/packages/@ember/runloop/type-tests.ts/next.test.js +38 -0
  90. package/dist/packages/@ember/runloop/type-tests.ts/once.test.js +38 -0
  91. package/dist/packages/@ember/runloop/type-tests.ts/run.test.js +38 -0
  92. package/dist/packages/@ember/runloop/type-tests.ts/schedule-once.test.js +39 -0
  93. package/dist/packages/@ember/runloop/type-tests.ts/schedule.test.js +39 -0
  94. package/dist/packages/@ember/runloop/type-tests.ts/throttle.test.js +77 -0
  95. package/dist/packages/ember/index.js +4 -14
  96. package/dist/packages/ember/version.js +1 -1
  97. package/docs/data.json +330 -245
  98. package/package.json +4 -4
@@ -3,18 +3,18 @@ import { expect } from 'chai';
3
3
  import startApp from '<%= dasherizedPackageName %>/tests/helpers/start-app';
4
4
  <% if (destroyAppExists) { %>import destroyApp from '<%= dasherizedPackageName %>/tests/helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>
5
5
 
6
- describe('<%= friendlyTestName %>', function() {
6
+ describe('<%= friendlyTestName %>', function () {
7
7
  let application;
8
8
 
9
- beforeEach(function() {
9
+ beforeEach(function () {
10
10
  application = startApp();
11
11
  });
12
12
 
13
- afterEach(function() {
13
+ afterEach(function () {
14
14
  <% if (destroyAppExists) { %>destroyApp(application);<% } else { %>run(application, 'destroy');<% } %>
15
15
  });
16
16
 
17
- it('can visit /<%= dasherizedModuleName %>', function() {
17
+ it('can visit /<%= dasherizedModuleName %>', function () {
18
18
  visit('/<%= dasherizedModuleName %>');
19
19
 
20
20
  return andThen(() => {
@@ -3,10 +3,10 @@ import { expect } from 'chai';
3
3
  import { setupApplicationTest } from 'ember-mocha';
4
4
  import { visit, currentURL } from '@ember/test-helpers';
5
5
 
6
- describe('<%= friendlyTestName %>', function() {
6
+ describe('<%= friendlyTestName %>', function () {
7
7
  setupApplicationTest();
8
8
 
9
- it('can visit /<%= dasherizedModuleName %>', async function() {
9
+ it('can visit /<%= dasherizedModuleName %>', async function () {
10
10
  await visit('/<%= dasherizedModuleName %>');
11
11
  expect(currentURL()).to.equal('/<%= dasherizedModuleName %>');
12
12
  });
@@ -3,10 +3,10 @@ import moduleForAcceptance from '<%= testFolderRoot %>/tests/helpers/module-for-
3
3
 
4
4
  moduleForAcceptance('<%= friendlyTestName %>');
5
5
 
6
- test('visiting /<%= dasherizedModuleName %>', function(assert) {
6
+ test('visiting /<%= dasherizedModuleName %>', function (assert) {
7
7
  visit('/<%= dasherizedModuleName %>');
8
8
 
9
- andThen(function() {
9
+ andThen(function () {
10
10
  assert.strictEqual(currentURL(), '/<%= dasherizedModuleName %>');
11
11
  });
12
12
  });
@@ -2,10 +2,10 @@ import { module, test } from 'qunit';
2
2
  import { visit, currentURL } from '@ember/test-helpers';
3
3
  import { setupApplicationTest } from 'ember-qunit';
4
4
 
5
- module('<%= friendlyTestName %>', function(hooks) {
5
+ module('<%= friendlyTestName %>', function (hooks) {
6
6
  setupApplicationTest(hooks);
7
7
 
8
- test('visiting /<%= dasherizedModuleName %>', async function(assert) {
8
+ test('visiting /<%= dasherizedModuleName %>', async function (assert) {
9
9
  await visit('/<%= dasherizedModuleName %>');
10
10
 
11
11
  assert.strictEqual(currentURL(), '/<%= dasherizedModuleName %>');
@@ -253,12 +253,12 @@ module.exports = {
253
253
  importTemplate = `import layout from '${templatePath}';${EOL}`;
254
254
  defaultExport = `Component.extend({${EOL} layout${EOL}});`;
255
255
  } else {
256
- defaultExport = `Component.extend({${EOL}});`;
256
+ defaultExport = `Component.extend({});`;
257
257
  }
258
258
  break;
259
259
  case '@glimmer/component':
260
260
  importComponent = `import Component from '@glimmer/component';`;
261
- defaultExport = `class ${classifiedModuleName}Component extends Component {${EOL}}`;
261
+ defaultExport = `class ${classifiedModuleName}Component extends Component {}`;
262
262
  break;
263
263
  case '@ember/component/template-only':
264
264
  importComponent = `import templateOnly from '@ember/component/template-only';`;
@@ -151,12 +151,12 @@ module.exports = {
151
151
  importTemplate = `import layout from '${templatePath}';${EOL}`;
152
152
  defaultExport = `Component.extend({${EOL} layout${EOL}});`;
153
153
  } else {
154
- defaultExport = `Component.extend({${EOL}});`;
154
+ defaultExport = `Component.extend({});`;
155
155
  }
156
156
  break;
157
157
  case '@glimmer/component':
158
158
  importComponent = `import Component from '@glimmer/component';`;
159
- defaultExport = `class ${classifiedModuleName}Component extends Component {\n}`;
159
+ defaultExport = `class ${classifiedModuleName}Component extends Component {}`;
160
160
  break;
161
161
  case '@ember/component/template-only':
162
162
  importComponent = `import templateOnly from '@ember/component/template-only';`;
@@ -3,14 +3,14 @@ import { describe, it } from 'mocha';
3
3
  import { setupComponentTest } from 'ember-mocha';<% if (testType === 'integration') { %>
4
4
  import hbs from 'htmlbars-inline-precompile';<% } %>
5
5
 
6
- describe('<%= friendlyTestDescription %>', function() {
6
+ describe('<%= friendlyTestDescription %>', function () {
7
7
  setupComponentTest('<%= componentPathName %>', {
8
- <% if (testType === 'integration' ) { %>integration: true<% } else if(testType === 'unit') { %>// Specify the other units that are required for this test
8
+ <% if (testType === 'integration' ) { %>integration: true,<% } else if(testType === 'unit') { %>// Specify the other units that are required for this test
9
9
  // needs: ['component:foo', 'helper:bar'],
10
- unit: true<% } %>
10
+ unit: true,<% } %>
11
11
  });
12
12
 
13
- it('renders', function() {
13
+ it('renders', function () {
14
14
  <% if (testType === 'integration' ) { %>// Set any properties with this.set('myProperty', 'value');
15
15
  // Handle any actions with this.on('myAction', function(val) { ... });
16
16
 
@@ -2,14 +2,16 @@ import { expect } from 'chai';
2
2
  import { describeComponent, it } from 'ember-mocha';<% if (testType === 'integration') { %>
3
3
  import hbs from 'htmlbars-inline-precompile';<% } %>
4
4
 
5
- describeComponent('<%= componentPathName %>', '<%= friendlyTestDescription %>',
5
+ describeComponent(
6
+ '<%= componentPathName %>',
7
+ '<%= friendlyTestDescription %>',
6
8
  {
7
- <% if (testType === 'integration' ) { %>integration: true<% } else if(testType === 'unit') { %>// Specify the other units that are required for this test
9
+ <% if (testType === 'integration' ) { %>integration: true,<% } else if(testType === 'unit') { %>// Specify the other units that are required for this test
8
10
  // needs: ['component:foo', 'helper:bar'],
9
- unit: true<% } %>
11
+ unit: true,<% } %>
10
12
  },
11
- function() {
12
- it('renders', function() {
13
+ function () {
14
+ it('renders', function () {
13
15
  <% if (testType === 'integration' ) { %>// Set any properties with this.set('myProperty', 'value');
14
16
  // Handle any actions with this.on('myAction', function(val) { ... });
15
17
 
@@ -4,10 +4,10 @@ import { setupRenderingTest } from 'ember-mocha';
4
4
  import { render } from '@ember/test-helpers';
5
5
  <%= hbsImportStatement %>
6
6
 
7
- describe('<%= friendlyTestDescription %>', function() {
7
+ describe('<%= friendlyTestDescription %>', function () {
8
8
  setupRenderingTest();
9
9
 
10
- it('renders', async function() {
10
+ it('renders', async function () {
11
11
  // Set any properties with this.set('myProperty', 'value');
12
12
  // Handle any actions with this.set('myAction', function(val) { ... });
13
13
 
@@ -28,10 +28,10 @@ describe('<%= friendlyTestDescription %>', function() {
28
28
  import { describe, it } from 'mocha';
29
29
  import { setupTest } from 'ember-mocha';
30
30
 
31
- describe('<%= friendlyTestDescription %>', function() {
31
+ describe('<%= friendlyTestDescription %>', function () {
32
32
  setupTest();
33
33
 
34
- it('exists', function() {
34
+ it('exists', function () {
35
35
  let component = this.owner.factoryFor('component:<%= componentPathName %>').create();
36
36
  expect(component).to.be.ok;
37
37
  });
@@ -2,13 +2,13 @@ import { moduleForComponent, test } from 'ember-qunit';<% if (testType === 'inte
2
2
  import hbs from 'htmlbars-inline-precompile';<% } %>
3
3
 
4
4
  moduleForComponent('<%= componentPathName %>', '<%= friendlyTestDescription %>', {
5
- <% if (testType === 'integration' ) { %>integration: true<% } else if(testType === 'unit') { %>// Specify the other units that are required for this test
5
+ <% if (testType === 'integration' ) { %>integration: true,<% } else if(testType === 'unit') { %>// Specify the other units that are required for this test
6
6
  // needs: ['component:foo', 'helper:bar'],
7
- unit: true<% } %>
7
+ unit: true,<% } %>
8
8
  });
9
9
 
10
- test('it renders', function(assert) {
11
- <% if (testType === 'integration' ) { %>// Set any properties with this.set('myProperty', 'value');
10
+ test('it renders', function (assert) {<% if (testType === 'integration' ) { %>
11
+ // Set any properties with this.set('myProperty', 'value');
12
12
  // Handle any actions with this.on('myAction', function(val) { ... });
13
13
 
14
14
  this.render(hbs`<%= selfCloseComponent(componentName) %>`);
@@ -3,10 +3,10 @@ import { setupRenderingTest } from 'ember-qunit';
3
3
  import { render } from '@ember/test-helpers';
4
4
  <%= hbsImportStatement %>
5
5
 
6
- module('<%= friendlyTestDescription %>', function(hooks) {
6
+ module('<%= friendlyTestDescription %>', function (hooks) {
7
7
  setupRenderingTest(hooks);
8
8
 
9
- test('it renders', async function(assert) {
9
+ test('it renders', async function (assert) {
10
10
  // Set any properties with this.set('myProperty', 'value');
11
11
  // Handle any actions with this.set('myAction', function(val) { ... });
12
12
 
@@ -26,10 +26,10 @@ module('<%= friendlyTestDescription %>', function(hooks) {
26
26
  });<% } else if (testType === 'unit') { %>import { module, test } from 'qunit';
27
27
  import { setupTest } from 'ember-qunit';
28
28
 
29
- module('<%= friendlyTestDescription %>', function(hooks) {
29
+ module('<%= friendlyTestDescription %>', function (hooks) {
30
30
  setupTest(hooks);
31
31
 
32
- test('it exists', function(assert) {
32
+ test('it exists', function (assert) {
33
33
  let component = this.owner.factoryFor('component:<%= componentPathName %>').create();
34
34
  assert.ok(component);
35
35
  });
@@ -1,4 +1,3 @@
1
1
  import Controller from '@ember/controller';
2
2
 
3
- export default class <%= classifiedModuleName %>Controller extends Controller {
4
- }
3
+ export default class <%= classifiedModuleName %>Controller extends Controller {}
@@ -2,14 +2,14 @@ import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
3
  import { setupTest } from 'ember-mocha';
4
4
 
5
- describe('<%= friendlyTestDescription %>', function() {
5
+ describe('<%= friendlyTestDescription %>', function () {
6
6
  setupTest('controller:<%= dasherizedModuleName %>', {
7
7
  // Specify the other units that are required for this test.
8
8
  // needs: ['controller:foo']
9
9
  });
10
10
 
11
11
  // TODO: Replace this with your real tests.
12
- it('exists', function() {
12
+ it('exists', function () {
13
13
  let controller = this.subject();
14
14
  expect(controller).to.be.ok;
15
15
  });
@@ -1,14 +1,16 @@
1
1
  import { expect } from 'chai';
2
2
  import { describeModule, it } from 'ember-mocha';
3
3
 
4
- describeModule('controller:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>',
4
+ describeModule(
5
+ 'controller:<%= dasherizedModuleName %>',
6
+ '<%= friendlyTestDescription %>',
5
7
  {
6
8
  // Specify the other units that are required for this test.
7
9
  // needs: ['controller:foo']
8
10
  },
9
- function() {
11
+ function () {
10
12
  // TODO: Replace this with your real tests.
11
- it('exists', function() {
13
+ it('exists', function () {
12
14
  let controller = this.subject();
13
15
  expect(controller).to.be.ok;
14
16
  });
@@ -2,11 +2,11 @@ import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
3
  import { setupTest } from 'ember-mocha';
4
4
 
5
- describe('<%= friendlyTestDescription %>', function() {
5
+ describe('<%= friendlyTestDescription %>', function () {
6
6
  setupTest();
7
7
 
8
8
  // TODO: Replace this with your real tests.
9
- it('exists', function() {
9
+ it('exists', function () {
10
10
  let controller = this.owner.lookup('controller:<%= controllerPathName %>');
11
11
  expect(controller).to.be.ok;
12
12
  });
@@ -6,7 +6,7 @@ moduleFor('controller:<%= dasherizedModuleName %>', '<%= friendlyTestDescription
6
6
  });
7
7
 
8
8
  // TODO: Replace this with your real tests.
9
- test('it exists', function(assert) {
9
+ test('it exists', function (assert) {
10
10
  let controller = this.subject();
11
11
  assert.ok(controller);
12
12
  });
@@ -1,11 +1,11 @@
1
1
  import { module, test } from 'qunit';
2
2
  import { setupTest } from 'ember-qunit';
3
3
 
4
- module('<%= friendlyTestDescription %>', function(hooks) {
4
+ module('<%= friendlyTestDescription %>', function (hooks) {
5
5
  setupTest(hooks);
6
6
 
7
7
  // TODO: Replace this with your real tests.
8
- test('it exists', function(assert) {
8
+ test('it exists', function (assert) {
9
9
  let controller = this.owner.lookup('controller:<%= controllerPathName %>');
10
10
  assert.ok(controller);
11
11
  });
@@ -1,5 +1,5 @@
1
1
  import { helper } from '@ember/component/helper';
2
2
 
3
- export default helper(function <%= camelizedModuleName %>(positional/*, named*/) {
3
+ export default helper(function <%= camelizedModuleName %>(positional /*, named*/) {
4
4
  return positional;
5
5
  });
@@ -1,6 +1,6 @@
1
1
  import { helper as buildHelper } from '@ember/component/helper';
2
2
 
3
- export function <%= camelizedModuleName %>(positional/*, named*/) {
3
+ export function <%= camelizedModuleName %>(positional /*, named*/) {
4
4
  return positional;
5
5
  }
6
6
 
@@ -3,12 +3,12 @@ import { describe, it } from 'mocha';
3
3
  import { setupComponentTest } from 'ember-mocha';
4
4
  import hbs from 'htmlbars-inline-precompile';
5
5
 
6
- describe('<%= friendlyTestName %>', function() {
6
+ describe('<%= friendlyTestName %>', function () {
7
7
  setupComponentTest('<%= dasherizedModuleName %>', {
8
- integration: true
8
+ integration: true,
9
9
  });
10
10
 
11
- it('renders', function() {
11
+ it('renders', function () {
12
12
  // Set any properties with this.set('myProperty', 'value');
13
13
  // Handle any actions with this.on('myAction', function(val) { ... });
14
14
  // Template block usage:
@@ -2,12 +2,14 @@ import { expect } from 'chai';
2
2
  import { describeComponent, it } from 'ember-mocha';
3
3
  import hbs from 'htmlbars-inline-precompile';
4
4
 
5
- describeComponent('<%= dasherizedModuleName %>', 'helper:<%= dasherizedModuleName %>',
5
+ describeComponent(
6
+ '<%= dasherizedModuleName %>',
7
+ 'helper:<%= dasherizedModuleName %>',
6
8
  {
7
- integration: true
9
+ integration: true,
8
10
  },
9
- function() {
10
- it('renders', function() {
11
+ function () {
12
+ it('renders', function () {
11
13
  // Set any properties with this.set('myProperty', 'value');
12
14
  // Handle any actions with this.on('myAction', function(val) { ... });
13
15
  // Template block usage:
@@ -4,11 +4,11 @@ import { setupRenderingTest } from 'ember-mocha';
4
4
  import { render } from '@ember/test-helpers';
5
5
  <%= hbsImportStatement %>
6
6
 
7
- describe('<%= friendlyTestName %>', function() {
7
+ describe('<%= friendlyTestName %>', function () {
8
8
  setupRenderingTest();
9
9
 
10
10
  // TODO: Replace this with your real tests.
11
- it('renders', async function() {
11
+ it('renders', async function () {
12
12
  this.set('inputValue', '1234');
13
13
 
14
14
  await render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`);
@@ -2,11 +2,11 @@ import { moduleForComponent, test } from 'ember-qunit';
2
2
  import hbs from 'htmlbars-inline-precompile';
3
3
 
4
4
  moduleForComponent('<%= dasherizedModuleName %>', 'helper:<%= dasherizedModuleName %>', {
5
- integration: true
5
+ integration: true,
6
6
  });
7
7
 
8
8
  // TODO: Replace this with your real tests.
9
- test('it renders', function(assert) {
9
+ test('it renders', function (assert) {
10
10
  this.set('inputValue', '1234');
11
11
 
12
12
  this.render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`);
@@ -3,11 +3,11 @@ import { setupRenderingTest } from 'ember-qunit';
3
3
  import { render } from '@ember/test-helpers';
4
4
  <%= hbsImportStatement %>
5
5
 
6
- module('<%= friendlyTestName %>', function(hooks) {
6
+ module('<%= friendlyTestName %>', function (hooks) {
7
7
  setupRenderingTest(hooks);
8
8
 
9
9
  // TODO: Replace this with your real tests.
10
- test('it renders', async function(assert) {
10
+ test('it renders', async function (assert) {
11
11
  this.set('inputValue', '1234');
12
12
 
13
13
  await render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`);
@@ -1,6 +1,5 @@
1
- export function initialize(/* application */) {
2
- }
1
+ export function initialize(/* application */) {}
3
2
 
4
3
  export default {
5
- initialize
4
+ initialize,
6
5
  };
@@ -3,24 +3,23 @@ import { describe, it, beforeEach, afterEach } from 'mocha';
3
3
  import { run } from '@ember/runloop';
4
4
  import Application from '@ember/application';
5
5
  import { initialize } from '<%= modulePrefix %>/initializers/<%= dasherizedModuleName %>';
6
- <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } %>
7
-
8
- describe('<%= friendlyTestName %>', function() {
6
+ <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';\n<% } %>
7
+ describe('<%= friendlyTestName %>', function () {
9
8
  let application;
10
9
 
11
- beforeEach(function() {
12
- run(function() {
10
+ beforeEach(function () {
11
+ run(function () {
13
12
  application = Application.create();
14
13
  application.deferReadiness();
15
14
  });
16
15
  });
17
16
 
18
- afterEach(function() {
17
+ afterEach(function () {
19
18
  <% if (destroyAppExists) { %>destroyApp(application);<% } else { %>run(application, 'destroy');<% } %>
20
19
  });
21
20
 
22
21
  // TODO: Replace this with your real tests.
23
- it('works', function() {
22
+ it('works', function () {
24
23
  initialize(application);
25
24
 
26
25
  // you would normally confirm the results of the initializer here
@@ -4,23 +4,23 @@ import Application from '@ember/application';
4
4
  import { initialize } from '<%= modulePrefix %>/initializers/<%= dasherizedModuleName %>';
5
5
  <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>
6
6
 
7
- describe('<%= friendlyTestName %>', function() {
8
- beforeEach(function() {
7
+ describe('<%= friendlyTestName %>', function () {
8
+ beforeEach(function () {
9
9
  this.TestApplication = Application.extend();
10
10
  this.TestApplication.initializer({
11
11
  name: 'initializer under test',
12
- initialize
12
+ initialize,
13
13
  });
14
14
 
15
15
  this.application = this.TestApplication.create({ autoboot: false });
16
16
  });
17
17
 
18
- afterEach(function() {
18
+ afterEach(function () {
19
19
  <% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
20
20
  });
21
21
 
22
22
  // TODO: Replace this with your real tests.
23
- it('works', async function() {
23
+ it('works', async function () {
24
24
  await this.application.boot();
25
25
 
26
26
  // you would normally confirm the results of the initializer here
@@ -3,8 +3,7 @@ import { run } from '@ember/runloop';
3
3
 
4
4
  import { initialize } from '<%= modulePrefix %>/initializers/<%= dasherizedModuleName %>';
5
5
  import { module, test } from 'qunit';
6
- <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } %>
7
-
6
+ <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';\n<% } %>
8
7
  module('<%= friendlyTestName %>', {
9
8
  beforeEach() {
10
9
  run(() => {
@@ -14,11 +13,11 @@ module('<%= friendlyTestName %>', {
14
13
  },
15
14
  afterEach() {
16
15
  <% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
17
- }
16
+ },
18
17
  });
19
18
 
20
19
  // TODO: Replace this with your real tests.
21
- test('it works', function(assert) {
20
+ test('it works', function (assert) {
22
21
  initialize(this.application);
23
22
 
24
23
  // you would normally confirm the results of the initializer here
@@ -1,6 +1,5 @@
1
- export function initialize(/* appInstance */) {
2
- }
1
+ export function initialize(/* appInstance */) {}
3
2
 
4
3
  export default {
5
- initialize
4
+ initialize,
6
5
  };
@@ -5,23 +5,23 @@ import { run } from '@ember/runloop';
5
5
  import { initialize } from '<%= modulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
6
6
  import destroyApp from '../../helpers/destroy-app';
7
7
 
8
- describe('<%= friendlyTestName %>', function() {
8
+ describe('<%= friendlyTestName %>', function () {
9
9
  let application, appInstance;
10
10
 
11
- beforeEach(function() {
12
- run(function() {
11
+ beforeEach(function () {
12
+ run(function () {
13
13
  application = Application.create();
14
14
  appInstance = application.buildInstance();
15
15
  });
16
16
  });
17
17
 
18
- afterEach(function() {
18
+ afterEach(function () {
19
19
  run(appInstance, 'destroy');
20
20
  destroyApp(application);
21
21
  });
22
22
 
23
23
  // TODO: Replace this with your real tests.
24
- it('works', function() {
24
+ it('works', function () {
25
25
  initialize(appInstance);
26
26
 
27
27
  // you would normally confirm the results of the initializer here
@@ -4,23 +4,23 @@ import Application from '@ember/application';
4
4
  import { initialize } from '<%= modulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
5
5
  <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>
6
6
 
7
- describe('<%= friendlyTestName %>', function() {
8
- beforeEach(function() {
7
+ describe('<%= friendlyTestName %>', function () {
8
+ beforeEach(function () {
9
9
  this.TestApplication = Application.extend();
10
10
  this.TestApplication.instanceInitializer({
11
11
  name: 'initializer under test',
12
- initialize
12
+ initialize,
13
13
  });
14
14
  this.application = this.TestApplication.create({ autoboot: false });
15
15
  this.instance = this.application.buildInstance();
16
16
  });
17
- afterEach(function() {
17
+ afterEach(function () {
18
18
  <% if (destroyAppExists) { %>destroyApp(this.instance);<% } else { %>run(this.instance, 'destroy');<% } %>
19
19
  <% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
20
20
  });
21
21
 
22
22
  // TODO: Replace this with your real tests.
23
- it('works', async function() {
23
+ it('works', async function () {
24
24
  await this.instance.boot();
25
25
 
26
26
  expect(true).to.be.ok;
@@ -14,11 +14,11 @@ module('<%= friendlyTestName %>', {
14
14
  afterEach() {
15
15
  run(this.appInstance, 'destroy');
16
16
  <% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
17
- }
17
+ },
18
18
  });
19
19
 
20
20
  // TODO: Replace this with your real tests.
21
- test('it works', function(assert) {
21
+ test('it works', function (assert) {
22
22
  initialize(this.appInstance);
23
23
 
24
24
  // you would normally confirm the results of the initializer here
@@ -1,4 +1,3 @@
1
1
  import Mixin from '@ember/object/mixin';
2
2
 
3
- export default Mixin.create({
4
- });
3
+ export default Mixin.create({});
@@ -3,9 +3,9 @@ import { describe, it } from 'mocha';
3
3
  import EmberObject from '@ember/object';
4
4
  import <%= classifiedModuleName %>Mixin from '<%= dasherizedPackageName %>/mixins/<%= dasherizedModuleName %>';
5
5
 
6
- describe('<%= friendlyTestName %>', function() {
6
+ describe('<%= friendlyTestName %>', function () {
7
7
  // TODO: Replace this with your real tests.
8
- it('works', function() {
8
+ it('works', function () {
9
9
  let <%= classifiedModuleName %>Object = EmberObject.extend(<%= classifiedModuleName %>Mixin);
10
10
  let subject = <%= classifiedModuleName %>Object.create();
11
11
  expect(subject).to.be.ok;
@@ -3,9 +3,9 @@ import { describe, it } from 'mocha';
3
3
  import EmberObject from '@ember/object';
4
4
  import <%= classifiedModuleName %>Mixin from '<%= dasherizedPackageName %>/mixins/<%= dasherizedModuleName %>';
5
5
 
6
- describe('<%= friendlyTestName %>', function() {
6
+ describe('<%= friendlyTestName %>', function () {
7
7
  // TODO: Replace this with your real tests.
8
- it('works', function() {
8
+ it('works', function () {
9
9
  let <%= classifiedModuleName %>Object = EmberObject.extend(<%= classifiedModuleName %>Mixin);
10
10
  let subject = <%= classifiedModuleName %>Object.create();
11
11
  expect(subject).to.be.ok;
@@ -5,7 +5,7 @@ import { module, test } from 'qunit';
5
5
  module('<%= friendlyTestName %>');
6
6
 
7
7
  // TODO: Replace this with your real tests.
8
- test('it works', function(assert) {
8
+ test('it works', function (assert) {
9
9
  let <%= classifiedModuleName %>Object = EmberObject.extend(<%= classifiedModuleName %>Mixin);
10
10
  let subject = <%= classifiedModuleName %>Object.create();
11
11
  assert.ok(subject);