ember-source 4.4.0-beta.1 → 4.4.2

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 (99) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/blueprints/-utils.js +9 -0
  3. package/blueprints/acceptance-test/index.js +3 -1
  4. package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.ts +1 -1
  5. package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.ts +1 -1
  6. package/blueprints/component-test/index.js +2 -0
  7. package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +2 -2
  8. package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +2 -2
  9. package/blueprints/controller-test/index.js +2 -0
  10. package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
  11. package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
  12. package/blueprints/helper-test/index.js +2 -3
  13. package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.ts +1 -1
  14. package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.ts +1 -1
  15. package/blueprints/route-test/index.js +2 -0
  16. package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
  17. package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
  18. package/blueprints/service-test/index.js +2 -0
  19. package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
  20. package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
  21. package/blueprints-js/-addon-import.js +48 -0
  22. package/blueprints-js/acceptance-test/mocha-files/tests/acceptance/__name__-test.js +24 -0
  23. package/blueprints-js/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.js +13 -0
  24. package/blueprints-js/acceptance-test/qunit-files/tests/acceptance/__name__-test.js +12 -0
  25. package/blueprints-js/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +13 -0
  26. package/blueprints-js/component/files/__root__/__path__/__name__.js +3 -0
  27. package/blueprints-js/component/files/__root__/__templatepath__/__templatename__.hbs +1 -0
  28. package/blueprints-js/component-addon/files/__root__/__path__/__name__.js +1 -0
  29. package/blueprints-js/component-class/files/__root__/__path__/__name__.js +3 -0
  30. package/blueprints-js/component-class-addon/files/__root__/__path__/__name__.js +1 -0
  31. package/blueprints-js/component-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +34 -0
  32. package/blueprints-js/component-test/mocha-files/__root__/__testType__/__path__/__test__.js +36 -0
  33. package/blueprints-js/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +38 -0
  34. package/blueprints-js/component-test/qunit-files/__root__/__testType__/__path__/__test__.js +31 -0
  35. package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +36 -0
  36. package/blueprints-js/controller/files/__root__/__path__/__name__.js +3 -0
  37. package/blueprints-js/controller-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +16 -0
  38. package/blueprints-js/controller-test/mocha-files/__root__/__testType__/__path__/__test__.js +18 -0
  39. package/blueprints-js/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +13 -0
  40. package/blueprints-js/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js +12 -0
  41. package/blueprints-js/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +12 -0
  42. package/blueprints-js/helper/files/__root__/__collection__/__name__.js +5 -0
  43. package/blueprints-js/helper/mu-files/__root__/__collection__/__name__.js +7 -0
  44. package/blueprints-js/helper-addon/files/__root__/__path__/__name__.js +1 -0
  45. package/blueprints-js/helper-test/mocha-0.12-files/__root__/__testType__/__collection__/__name__-test.js +26 -0
  46. package/blueprints-js/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js +28 -0
  47. package/blueprints-js/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +18 -0
  48. package/blueprints-js/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js +15 -0
  49. package/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +17 -0
  50. package/blueprints-js/initializer/files/__root__/initializers/__name__.js +5 -0
  51. package/blueprints-js/initializer-addon/files/__root__/__path__/__name__.js +1 -0
  52. package/blueprints-js/initializer-test/mocha-files/__root__/__testType__/__path__/__name__-test.js +28 -0
  53. package/blueprints-js/initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +31 -0
  54. package/blueprints-js/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +25 -0
  55. package/blueprints-js/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +37 -0
  56. package/blueprints-js/instance-initializer/files/__root__/instance-initializers/__name__.js +5 -0
  57. package/blueprints-js/instance-initializer-addon/files/__root__/__path__/__name__.js +1 -0
  58. package/blueprints-js/instance-initializer-test/mocha-files/__root__/__testType__/__path__/__name__-test.js +30 -0
  59. package/blueprints-js/instance-initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +32 -0
  60. package/blueprints-js/instance-initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +26 -0
  61. package/blueprints-js/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +39 -0
  62. package/blueprints-js/mixin/files/__root__/mixins/__name__.js +3 -0
  63. package/blueprints-js/mixin-test/mocha-files/__root__/__testType__/__name__-test.js +13 -0
  64. package/blueprints-js/mixin-test/mocha-rfc-232-files/__root__/__testType__/__name__-test.js +13 -0
  65. package/blueprints-js/mixin-test/qunit-files/__root__/__testType__/__name__-test.js +12 -0
  66. package/blueprints-js/mixin-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +12 -0
  67. package/blueprints-js/route/files/__root__/__path__/__name__.js +9 -0
  68. package/blueprints-js/route/files/__root__/__templatepath__/__templatename__.hbs +2 -0
  69. package/blueprints-js/route-addon/files/__root__/__path__/__name__.js +1 -0
  70. package/blueprints-js/route-addon/files/__root__/__templatepath__/__templatename__.js +1 -0
  71. package/blueprints-js/route-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +15 -0
  72. package/blueprints-js/route-test/mocha-files/__root__/__testType__/__path__/__test__.js +17 -0
  73. package/blueprints-js/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +12 -0
  74. package/blueprints-js/route-test/qunit-files/__root__/__testType__/__path__/__test__.js +11 -0
  75. package/blueprints-js/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +11 -0
  76. package/blueprints-js/service/files/__root__/__path__/__name__.js +3 -0
  77. package/blueprints-js/service-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +16 -0
  78. package/blueprints-js/service-test/mocha-files/__root__/__testType__/__path__/__test__.js +18 -0
  79. package/blueprints-js/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +13 -0
  80. package/blueprints-js/service-test/qunit-files/__root__/__testType__/__path__/__test__.js +12 -0
  81. package/blueprints-js/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +12 -0
  82. package/blueprints-js/template/files/__root__/__path__/__name__.hbs +0 -0
  83. package/blueprints-js/test-framework-detector.js +60 -0
  84. package/blueprints-js/util/files/__root__/utils/__name__.js +3 -0
  85. package/blueprints-js/util-test/mocha-files/__root__/__testType__/__name__-test.js +11 -0
  86. package/blueprints-js/util-test/mocha-rfc-232-files/__root__/__testType__/__name__-test.js +11 -0
  87. package/blueprints-js/util-test/qunit-files/__root__/__testType__/__name__-test.js +10 -0
  88. package/blueprints-js/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +10 -0
  89. package/build-metadata.json +3 -3
  90. package/dist/ember-template-compiler.js +2 -2
  91. package/dist/ember-template-compiler.map +1 -1
  92. package/dist/ember-testing.js +1 -1
  93. package/dist/ember-testing.map +1 -1
  94. package/dist/ember.debug.js +2 -2
  95. package/dist/ember.debug.map +1 -1
  96. package/dist/header/license.js +1 -1
  97. package/dist/packages/ember/version.js +1 -1
  98. package/docs/data.json +1 -1
  99. package/package.json +5 -7
@@ -0,0 +1,13 @@
1
+ import { expect } from 'chai';
2
+ import { describe, it } from 'mocha';
3
+ import { setupTest } from '<%= modulePrefix %>/tests/helpers';
4
+
5
+ describe('<%= friendlyTestDescription %>', function () {
6
+ setupTest();
7
+
8
+ // TODO: Replace this with your real tests.
9
+ it('exists', function () {
10
+ let service = this.owner.lookup('service:<%= dasherizedModuleName %>');
11
+ expect(service).to.be.ok;
12
+ });
13
+ });
@@ -0,0 +1,12 @@
1
+ import { moduleFor, test } from 'ember-qunit';
2
+
3
+ moduleFor('service:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>', {
4
+ // Specify the other units that are required for this test.
5
+ // needs: ['service:foo']
6
+ });
7
+
8
+ // TODO: Replace this with your real tests.
9
+ test('it exists', function (assert) {
10
+ let service = this.subject();
11
+ assert.ok(service);
12
+ });
@@ -0,0 +1,12 @@
1
+ import { module, test } from 'qunit';
2
+ import { setupTest } from '<%= modulePrefix %>/tests/helpers';
3
+
4
+ module('<%= friendlyTestDescription %>', function (hooks) {
5
+ setupTest(hooks);
6
+
7
+ // TODO: Replace this with your real tests.
8
+ test('it exists', function (assert) {
9
+ let service = this.owner.lookup('service:<%= dasherizedModuleName %>');
10
+ assert.ok(service);
11
+ });
12
+ });
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+ const VersionChecker = require('ember-cli-version-checker');
6
+
7
+ module.exports = function (blueprint) {
8
+ blueprint.supportsAddon = function () {
9
+ return false;
10
+ };
11
+
12
+ blueprint.filesPath = function () {
13
+ let type;
14
+ const qunitRfcVersion = 'qunit-rfc-232';
15
+ const mochaRfcVersion = 'mocha-rfc-232';
16
+ const mochaVersion = 'mocha-0.12';
17
+
18
+ let dependencies = this.project.dependencies();
19
+ if ('ember-qunit' in dependencies) {
20
+ type = qunitRfcVersion;
21
+ } else if ('ember-cli-qunit' in dependencies) {
22
+ let checker = new VersionChecker(this.project);
23
+ if (
24
+ fs.existsSync(`${this.path}/${qunitRfcVersion}-files`) &&
25
+ checker.for('ember-cli-qunit', 'npm').gte('4.2.0')
26
+ ) {
27
+ type = qunitRfcVersion;
28
+ } else {
29
+ type = 'qunit';
30
+ }
31
+ } else if ('ember-mocha' in dependencies) {
32
+ let checker = new VersionChecker(this.project);
33
+ if (
34
+ fs.existsSync(`${this.path}/${mochaRfcVersion}-files`) &&
35
+ checker.for('ember-mocha', 'npm').gte('0.14.0')
36
+ ) {
37
+ type = mochaRfcVersion;
38
+ } else {
39
+ type = mochaVersion;
40
+ }
41
+ } else if ('ember-cli-mocha' in dependencies) {
42
+ let checker = new VersionChecker(this.project);
43
+ if (
44
+ fs.existsSync(`${this.path}/${mochaVersion}-files`) &&
45
+ checker.for('ember-cli-mocha', 'npm').gte('0.12.0')
46
+ ) {
47
+ type = mochaVersion;
48
+ } else {
49
+ type = 'mocha';
50
+ }
51
+ } else {
52
+ this.ui.writeLine("Couldn't determine test style - using QUnit");
53
+ type = 'qunit';
54
+ }
55
+
56
+ return path.join(this.path, type + '-files');
57
+ };
58
+
59
+ return blueprint;
60
+ };
@@ -0,0 +1,3 @@
1
+ export default function <%= camelizedModuleName %>() {
2
+ return true;
3
+ }
@@ -0,0 +1,11 @@
1
+ import { expect } from 'chai';
2
+ import { describe, it } from 'mocha';
3
+ import <%= camelizedModuleName %> from '<%= dasherizedPackageName %>/utils/<%= dasherizedModuleName %>';
4
+
5
+ describe('<%= friendlyTestName %>', function () {
6
+ // TODO: Replace this with your real tests.
7
+ it('works', function () {
8
+ let result = <%= camelizedModuleName %>();
9
+ expect(result).to.be.ok;
10
+ });
11
+ });
@@ -0,0 +1,11 @@
1
+ import { expect } from 'chai';
2
+ import { describe, it } from 'mocha';
3
+ import <%= camelizedModuleName %> from '<%= dasherizedPackageName %>/utils/<%= dasherizedModuleName %>';
4
+
5
+ describe('<%= friendlyTestName %>', function () {
6
+ // TODO: Replace this with your real tests.
7
+ it('works', function () {
8
+ let result = <%= camelizedModuleName %>();
9
+ expect(result).to.be.ok;
10
+ });
11
+ });
@@ -0,0 +1,10 @@
1
+ import <%= camelizedModuleName %> from '<%= dasherizedModulePrefix %>/utils/<%= dasherizedModuleName %>';
2
+ import { module, test } from 'qunit';
3
+
4
+ module('<%= friendlyTestName %>');
5
+
6
+ // TODO: Replace this with your real tests.
7
+ test('it works', function (assert) {
8
+ let result = <%= camelizedModuleName %>();
9
+ assert.ok(result);
10
+ });
@@ -0,0 +1,10 @@
1
+ import <%= camelizedModuleName %> from '<%= dasherizedModulePrefix %>/utils/<%= dasherizedModuleName %>';
2
+ import { module, test } from 'qunit';
3
+
4
+ module('<%= friendlyTestName %>', function () {
5
+ // TODO: Replace this with your real tests.
6
+ test('it works', function (assert) {
7
+ let result = <%= camelizedModuleName %>();
8
+ assert.ok(result);
9
+ });
10
+ });
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "4.4.0-beta.1",
2
+ "version": "4.4.2",
3
3
  "buildType": "tag",
4
- "SHA": "c51c6ca5749d5a2e114d0fce53d7026e24d4ecc2",
5
- "assetPath": "/tag/shas/c51c6ca5749d5a2e114d0fce53d7026e24d4ecc2.tgz"
4
+ "SHA": "bbcf8477a15aa520a01ed092f09d5a596de5540a",
5
+ "assetPath": "/tag/shas/bbcf8477a15aa520a01ed092f09d5a596de5540a.tgz"
6
6
  }
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 4.4.0-beta.1
9
+ * @version 4.4.2
10
10
  */
11
11
 
12
12
  /* eslint-disable no-var */
@@ -18732,7 +18732,7 @@ define("ember/version", ["exports"], function (_exports) {
18732
18732
  value: true
18733
18733
  });
18734
18734
  _exports.default = void 0;
18735
- var _default = "4.4.0-beta.1";
18735
+ var _default = "4.4.2";
18736
18736
  _exports.default = _default;
18737
18737
  });
18738
18738
  define("simple-html-tokenizer", ["exports"], function (_exports) {