ember-source 4.6.0-alpha.6 → 4.6.0
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.
- package/CHANGELOG.md +13 -5
- package/blueprints/-utils.js +9 -0
- package/blueprints/acceptance-test/index.js +3 -1
- package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.ts +1 -1
- package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.ts +1 -1
- package/blueprints/component-test/index.js +2 -0
- package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +2 -2
- package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +2 -2
- package/blueprints/controller-test/index.js +2 -0
- package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/helper-test/index.js +2 -3
- package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.ts +1 -1
- package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.ts +1 -1
- package/blueprints/initializer-test/index.js +2 -3
- package/blueprints/instance-initializer-test/index.js +2 -4
- package/blueprints/route-test/index.js +2 -0
- package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/service-test/index.js +2 -0
- package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/util-test/index.js +2 -2
- package/blueprints/util-test/qunit-files/__root__/__testType__/__name__-test.js +1 -1
- package/blueprints/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.ts +1 -1
- package/blueprints-js/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.js +1 -1
- package/blueprints-js/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +1 -1
- package/blueprints-js/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
- package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
- package/blueprints-js/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +1 -1
- package/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +1 -1
- package/blueprints-js/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/util-test/qunit-files/__root__/__testType__/__name__-test.js +1 -1
- package/blueprints-js/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +1 -1
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +5 -5
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +18 -16
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +4 -2
- package/dist/packages/@ember/-internals/metal/index.js +1 -1
- package/dist/packages/@ember/-internals/routing/lib/location/auto_location.js +5 -5
- package/dist/packages/@ember/-internals/routing/lib/location/hash_location.js +1 -1
- package/dist/packages/@ember/-internals/routing/lib/location/util.js +1 -1
- package/dist/packages/@ember/-internals/routing/lib/services/router.js +1 -1
- package/dist/packages/@ember/-internals/routing/lib/utils.js +1 -1
- package/dist/packages/@ember/canary-features/index.js +2 -2
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +1 -1
- package/package.json +4 -7
- package/blueprints-js/-addon-import.js +0 -48
- package/blueprints-js/test-framework-detector.js +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
# Ember Changelog
|
|
2
2
|
|
|
3
|
-
### v4.
|
|
3
|
+
### v4.6.0 (July 25, 2022)
|
|
4
4
|
|
|
5
|
-
- [#
|
|
5
|
+
- [#20125](https://github.com/emberjs/ember.js/pull/20125) [BUGFIX] Replace deprecated substr() method with substring() method.
|
|
6
6
|
|
|
7
|
-
### v4.
|
|
7
|
+
### v4.5.1 (July 25, 2022)
|
|
8
8
|
|
|
9
|
-
- [#
|
|
9
|
+
- [#20120](https://github.com/emberjs/ember.js/pull/20120) [BUGFIX] Adjust uniqueId() implementation to only generate valid selectors.
|
|
10
10
|
|
|
11
|
-
### v4.5.0
|
|
11
|
+
### v4.5.0 (June 13, 2022)
|
|
12
12
|
|
|
13
13
|
- [#20052](https://github.com/emberjs/ember.js/pull/20052) / [#20055](https://github.com/emberjs/ember.js/pull/20055) [FEATURE] Add the default helper manager to implement [RFC #0756](https://github.com/emberjs/rfcs/blob/master/text/0756-helper-default-manager.md).
|
|
14
14
|
- [#20053](https://github.com/emberjs/ember.js/pull/20053) [FEATURE] Expose `renderSettled` from `@ember/renderer` to enable implementation of [RFC #0785](https://github.com/emberjs/rfcs/blob/master/text/0785-remove-set-get-in-tests.md).
|
|
15
15
|
|
|
16
|
+
### v4.4.2 (June 13, 2022)
|
|
17
|
+
|
|
18
|
+
- [#20114](https://github.com/emberjs/ember.js/pull/20114) [BUGFIX] Fix generated import paths for test setup functions in addons
|
|
19
|
+
|
|
20
|
+
### v4.4.1 (May 31, 2022)
|
|
21
|
+
|
|
22
|
+
- [#20082](https://github.com/emberjs/ember.js/pull/20082) [BUGFIX] Fix blueprints publication
|
|
23
|
+
|
|
16
24
|
### v4.4.0 (May 2, 2022)
|
|
17
25
|
|
|
18
26
|
- [#19882](https://github.com/emberjs/ember.js/pull/19882) / [#20005](https://github.com/emberjs/ember.js/pull/20005) [FEATURE] Implement the `unique-id` helper per [RFC #0659](https://github.com/emberjs/rfcs/blob/master/text/0659-unique-id-helper.md).
|
|
@@ -6,6 +6,7 @@ const pathUtil = require('ember-cli-path-utils');
|
|
|
6
6
|
const stringUtils = require('ember-cli-string-utils');
|
|
7
7
|
|
|
8
8
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
9
|
+
const { modulePrefixForProject } = require('../-utils');
|
|
9
10
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
10
11
|
|
|
11
12
|
module.exports = useTestFrameworkDetector({
|
|
@@ -35,7 +36,8 @@ module.exports = useTestFrameworkDetector({
|
|
|
35
36
|
].join(' | ');
|
|
36
37
|
|
|
37
38
|
return {
|
|
38
|
-
|
|
39
|
+
modulePrefix: modulePrefixForProject(options.project),
|
|
40
|
+
testFolderRoot,
|
|
39
41
|
friendlyTestName,
|
|
40
42
|
destroyAppExists,
|
|
41
43
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it } from 'mocha';
|
|
2
2
|
import { expect } from 'chai';
|
|
3
|
-
import { setupApplicationTest } from '<%=
|
|
3
|
+
import { setupApplicationTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
import { visit, currentURL } from '@ember/test-helpers';
|
|
5
5
|
|
|
6
6
|
describe('<%= friendlyTestName %>', function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { module, test } from 'qunit';
|
|
2
2
|
import { visit, currentURL } from '@ember/test-helpers';
|
|
3
|
-
import { setupApplicationTest } from '<%=
|
|
3
|
+
import { setupApplicationTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
|
|
5
5
|
module('<%= friendlyTestName %>', function (hooks) {
|
|
6
6
|
setupApplicationTest(hooks);
|
|
@@ -7,6 +7,7 @@ const getPathOption = require('ember-cli-get-component-path-option');
|
|
|
7
7
|
const semver = require('semver');
|
|
8
8
|
|
|
9
9
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
10
|
+
const { modulePrefixForProject } = require('../-utils');
|
|
10
11
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
11
12
|
|
|
12
13
|
function invocationFor(options) {
|
|
@@ -81,6 +82,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
81
82
|
let selfCloseComponent = (descriptor) => `<${descriptor} />`;
|
|
82
83
|
|
|
83
84
|
return {
|
|
85
|
+
modulePrefix: modulePrefixForProject(options.project),
|
|
84
86
|
path: getPathOption(options),
|
|
85
87
|
testType: testType,
|
|
86
88
|
componentName,
|
package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<% if (testType === 'integration') { %>import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupRenderingTest } from '<%=
|
|
3
|
+
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
import { render } from '@ember/test-helpers';
|
|
5
5
|
<%= hbsImportStatement %>
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ describe('<%= friendlyTestDescription %>', function () {
|
|
|
26
26
|
});
|
|
27
27
|
});<% } else if (testType === 'unit') { %>import { expect } from 'chai';
|
|
28
28
|
import { describe, it } from 'mocha';
|
|
29
|
-
import { setupTest } from '<%=
|
|
29
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
30
30
|
|
|
31
31
|
describe('<%= friendlyTestDescription %>', function () {
|
|
32
32
|
setupTest();
|
package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<% if (testType === 'integration') { %>import { module, test } from 'qunit';
|
|
2
|
-
import { setupRenderingTest } from '<%=
|
|
2
|
+
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
3
3
|
import { render } from '@ember/test-helpers';
|
|
4
4
|
<%= hbsImportStatement %>
|
|
5
5
|
|
|
@@ -24,7 +24,7 @@ module('<%= friendlyTestDescription %>', function (hooks) {
|
|
|
24
24
|
assert.dom(this.element).hasText('template block text');
|
|
25
25
|
});
|
|
26
26
|
});<% } else if (testType === 'unit') { %>import { module, test } from 'qunit';
|
|
27
|
-
import { setupTest } from '<%=
|
|
27
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
28
28
|
|
|
29
29
|
module('<%= friendlyTestDescription %>', function (hooks) {
|
|
30
30
|
setupTest(hooks);
|
|
@@ -6,6 +6,7 @@ const useTestFrameworkDetector = require('../test-framework-detector');
|
|
|
6
6
|
const path = require('path');
|
|
7
7
|
|
|
8
8
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
9
|
+
const { modulePrefixForProject } = require('../-utils');
|
|
9
10
|
|
|
10
11
|
module.exports = useTestFrameworkDetector({
|
|
11
12
|
description: 'Generates a controller unit test.',
|
|
@@ -22,6 +23,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
22
23
|
let controllerPathName = dasherizedModuleName;
|
|
23
24
|
|
|
24
25
|
return {
|
|
26
|
+
modulePrefix: modulePrefixForProject(options.project),
|
|
25
27
|
controllerPathName: controllerPathName,
|
|
26
28
|
friendlyTestDescription: ['Unit', 'Controller', dasherizedModuleName].join(' | '),
|
|
27
29
|
};
|
package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupTest } from '<%=
|
|
3
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
|
|
5
5
|
describe('<%= friendlyTestDescription %>', function () {
|
|
6
6
|
setupTest();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stringUtils = require('ember-cli-string-utils');
|
|
4
3
|
const isPackageMissing = require('ember-cli-is-package-missing');
|
|
5
4
|
const semver = require('semver');
|
|
6
5
|
|
|
7
6
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
7
|
+
const { modulePrefixForProject } = require('../-utils');
|
|
8
8
|
|
|
9
9
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
10
10
|
|
|
@@ -34,15 +34,14 @@ module.exports = useTestFrameworkDetector({
|
|
|
34
34
|
|
|
35
35
|
locals: function (options) {
|
|
36
36
|
let friendlyTestName = ['Integration', 'Helper', options.entity.name].join(' | ');
|
|
37
|
-
let dasherizedModulePrefix = stringUtils.dasherize(options.project.config().modulePrefix);
|
|
38
37
|
|
|
39
38
|
let hbsImportStatement = this._useNamedHbsImport()
|
|
40
39
|
? "import { hbs } from 'ember-cli-htmlbars';"
|
|
41
40
|
: "import hbs from 'htmlbars-inline-precompile';";
|
|
42
41
|
|
|
43
42
|
return {
|
|
43
|
+
modulePrefix: modulePrefixForProject(options.project),
|
|
44
44
|
friendlyTestName,
|
|
45
|
-
dasherizedModulePrefix,
|
|
46
45
|
hbsImportStatement,
|
|
47
46
|
};
|
|
48
47
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupRenderingTest } from '<%=
|
|
3
|
+
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
import { render } from '@ember/test-helpers';
|
|
5
5
|
<%= hbsImportStatement %>
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { module, test } from 'qunit';
|
|
2
|
-
import { setupRenderingTest } from '<%=
|
|
2
|
+
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
3
3
|
import { render } from '@ember/test-helpers';
|
|
4
4
|
<%= hbsImportStatement %>
|
|
5
5
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
|
-
const stringUtils = require('ember-cli-string-utils');
|
|
6
5
|
|
|
7
6
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
7
|
+
const { modulePrefixForProject } = require('../-utils');
|
|
8
8
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
9
9
|
|
|
10
10
|
module.exports = useTestFrameworkDetector({
|
|
@@ -29,10 +29,9 @@ module.exports = useTestFrameworkDetector({
|
|
|
29
29
|
},
|
|
30
30
|
|
|
31
31
|
locals: function (options) {
|
|
32
|
-
let modulePrefix = stringUtils.dasherize(options.project.config().modulePrefix);
|
|
33
32
|
return {
|
|
34
33
|
friendlyTestName: ['Unit', 'Initializer', options.entity.name].join(' | '),
|
|
35
|
-
modulePrefix,
|
|
34
|
+
modulePrefix: modulePrefixForProject(options.project),
|
|
36
35
|
destroyAppExists: fs.existsSync(
|
|
37
36
|
path.join(this.project.root, '/tests/helpers/destroy-app.js')
|
|
38
37
|
),
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
|
-
const stringUtils = require('ember-cli-string-utils');
|
|
6
5
|
|
|
7
6
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
7
|
+
const { modulePrefixForProject } = require('../-utils');
|
|
8
8
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
9
9
|
|
|
10
10
|
module.exports = useTestFrameworkDetector({
|
|
@@ -28,11 +28,9 @@ module.exports = useTestFrameworkDetector({
|
|
|
28
28
|
};
|
|
29
29
|
},
|
|
30
30
|
locals: function (options) {
|
|
31
|
-
let modulePrefix = stringUtils.dasherize(options.project.config().modulePrefix);
|
|
32
|
-
|
|
33
31
|
return {
|
|
34
32
|
friendlyTestName: ['Unit', 'Instance Initializer', options.entity.name].join(' | '),
|
|
35
|
-
modulePrefix,
|
|
33
|
+
modulePrefix: modulePrefixForProject(options.project),
|
|
36
34
|
destroyAppExists: fs.existsSync(
|
|
37
35
|
path.join(this.project.root, '/tests/helpers/destroy-app.js')
|
|
38
36
|
),
|
|
@@ -5,6 +5,7 @@ const stringUtil = require('ember-cli-string-utils');
|
|
|
5
5
|
|
|
6
6
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
7
7
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
8
|
+
const { modulePrefixForProject } = require('../-utils');
|
|
8
9
|
|
|
9
10
|
module.exports = useTestFrameworkDetector({
|
|
10
11
|
description: 'Generates a route unit test.',
|
|
@@ -57,6 +58,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
return {
|
|
61
|
+
modulePrefix: modulePrefixForProject(options.project),
|
|
60
62
|
friendlyTestDescription: ['Unit', 'Route', options.entity.name].join(' | '),
|
|
61
63
|
moduleName: stringUtil.dasherize(moduleName),
|
|
62
64
|
};
|
package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupTest } from '<%=
|
|
3
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
|
|
5
5
|
describe('<%= friendlyTestDescription %>', function () {
|
|
6
6
|
setupTest();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
4
|
+
const { modulePrefixForProject } = require('../-utils');
|
|
4
5
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
5
6
|
|
|
6
7
|
module.exports = useTestFrameworkDetector({
|
|
@@ -26,6 +27,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
26
27
|
|
|
27
28
|
locals(options) {
|
|
28
29
|
return {
|
|
30
|
+
modulePrefix: modulePrefixForProject(options.project),
|
|
29
31
|
friendlyTestDescription: ['Unit', 'Service', options.entity.name].join(' | '),
|
|
30
32
|
};
|
|
31
33
|
},
|
package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupTest } from '<%=
|
|
3
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
|
|
5
5
|
describe('<%= friendlyTestDescription %>', function () {
|
|
6
6
|
setupTest();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stringUtils = require('ember-cli-string-utils');
|
|
4
3
|
const path = require('path');
|
|
5
4
|
|
|
6
5
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
6
|
+
const { modulePrefixForProject } = require('../-utils');
|
|
7
7
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
8
8
|
|
|
9
9
|
module.exports = useTestFrameworkDetector({
|
|
@@ -30,7 +30,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
30
30
|
locals: function (options) {
|
|
31
31
|
return {
|
|
32
32
|
friendlyTestName: ['Unit', 'Utility', options.entity.name].join(' | '),
|
|
33
|
-
|
|
33
|
+
modulePrefix: modulePrefixForProject(options.project),
|
|
34
34
|
};
|
|
35
35
|
},
|
|
36
36
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import <%= camelizedModuleName %> from '<%=
|
|
1
|
+
import <%= camelizedModuleName %> from '<%= modulePrefix %>/utils/<%= dasherizedModuleName %>';
|
|
2
2
|
import { module, test } from 'qunit';
|
|
3
3
|
|
|
4
4
|
module('<%= friendlyTestName %>');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import <%= camelizedModuleName %> from '<%=
|
|
1
|
+
import <%= camelizedModuleName %> from '<%= modulePrefix %>/utils/<%= dasherizedModuleName %>';
|
|
2
2
|
import { module, test } from 'qunit';
|
|
3
3
|
|
|
4
4
|
module('<%= friendlyTestName %>', function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it } from 'mocha';
|
|
2
2
|
import { expect } from 'chai';
|
|
3
|
-
import { setupApplicationTest } from '<%=
|
|
3
|
+
import { setupApplicationTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
import { visit, currentURL } from '@ember/test-helpers';
|
|
5
5
|
|
|
6
6
|
describe('<%= friendlyTestName %>', function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { module, test } from 'qunit';
|
|
2
2
|
import { visit, currentURL } from '@ember/test-helpers';
|
|
3
|
-
import { setupApplicationTest } from '<%=
|
|
3
|
+
import { setupApplicationTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
|
|
5
5
|
module('<%= friendlyTestName %>', function (hooks) {
|
|
6
6
|
setupApplicationTest(hooks);
|
package/blueprints-js/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<% if (testType === 'integration') { %>import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupRenderingTest } from '<%=
|
|
3
|
+
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
import { render } from '@ember/test-helpers';
|
|
5
5
|
<%= hbsImportStatement %>
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ describe('<%= friendlyTestDescription %>', function () {
|
|
|
26
26
|
});
|
|
27
27
|
});<% } else if (testType === 'unit') { %>import { expect } from 'chai';
|
|
28
28
|
import { describe, it } from 'mocha';
|
|
29
|
-
import { setupTest } from '<%=
|
|
29
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
30
30
|
|
|
31
31
|
describe('<%= friendlyTestDescription %>', function () {
|
|
32
32
|
setupTest();
|
package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<% if (testType === 'integration') { %>import { module, test } from 'qunit';
|
|
2
|
-
import { setupRenderingTest } from '<%=
|
|
2
|
+
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
3
3
|
import { render } from '@ember/test-helpers';
|
|
4
4
|
<%= hbsImportStatement %>
|
|
5
5
|
|
|
@@ -24,7 +24,7 @@ module('<%= friendlyTestDescription %>', function (hooks) {
|
|
|
24
24
|
assert.dom(this.element).hasText('template block text');
|
|
25
25
|
});
|
|
26
26
|
});<% } else if (testType === 'unit') { %>import { module, test } from 'qunit';
|
|
27
|
-
import { setupTest } from '<%=
|
|
27
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
28
28
|
|
|
29
29
|
module('<%= friendlyTestDescription %>', function (hooks) {
|
|
30
30
|
setupTest(hooks);
|
package/blueprints-js/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupTest } from '<%=
|
|
3
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
|
|
5
5
|
describe('<%= friendlyTestDescription %>', function () {
|
|
6
6
|
setupTest();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupRenderingTest } from '<%=
|
|
3
|
+
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
import { render } from '@ember/test-helpers';
|
|
5
5
|
<%= hbsImportStatement %>
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { module, test } from 'qunit';
|
|
2
|
-
import { setupRenderingTest } from '<%=
|
|
2
|
+
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
3
3
|
import { render } from '@ember/test-helpers';
|
|
4
4
|
<%= hbsImportStatement %>
|
|
5
5
|
|
package/blueprints-js/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupTest } from '<%=
|
|
3
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
|
|
5
5
|
describe('<%= friendlyTestDescription %>', function () {
|
|
6
6
|
setupTest();
|
package/blueprints-js/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
import { describe, it } from 'mocha';
|
|
3
|
-
import { setupTest } from '<%=
|
|
3
|
+
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
4
|
|
|
5
5
|
describe('<%= friendlyTestDescription %>', function () {
|
|
6
6
|
setupTest();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import <%= camelizedModuleName %> from '<%=
|
|
1
|
+
import <%= camelizedModuleName %> from '<%= modulePrefix %>/utils/<%= dasherizedModuleName %>';
|
|
2
2
|
import { module, test } from 'qunit';
|
|
3
3
|
|
|
4
4
|
module('<%= friendlyTestName %>');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import <%= camelizedModuleName %> from '<%=
|
|
1
|
+
import <%= camelizedModuleName %> from '<%= modulePrefix %>/utils/<%= dasherizedModuleName %>';
|
|
2
2
|
import { module, test } from 'qunit';
|
|
3
3
|
|
|
4
4
|
module('<%= friendlyTestName %>', function () {
|
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.6.0
|
|
2
|
+
"version": "4.6.0",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "464e694afd611e2203759e5f76a14c7bfb023006",
|
|
5
|
+
"assetPath": "/tag/shas/464e694afd611e2203759e5f76a14c7bfb023006.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.6.0
|
|
9
|
+
* @version 4.6.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* eslint-disable no-var */
|
|
@@ -1313,8 +1313,8 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1313
1313
|
@public
|
|
1314
1314
|
*/
|
|
1315
1315
|
var DEFAULT_FEATURES = {
|
|
1316
|
-
EMBER_LIBRARIES_ISREGISTERED:
|
|
1317
|
-
EMBER_IMPROVED_INSTRUMENTATION:
|
|
1316
|
+
EMBER_LIBRARIES_ISREGISTERED: false,
|
|
1317
|
+
EMBER_IMPROVED_INSTRUMENTATION: false,
|
|
1318
1318
|
EMBER_UNIQUE_ID_HELPER: true,
|
|
1319
1319
|
EMBER_DEFAULT_HELPER_MANAGER: true
|
|
1320
1320
|
};
|
|
@@ -17639,7 +17639,7 @@ define("ember-template-compiler/lib/plugins/assert-against-attrs", ["exports", "
|
|
|
17639
17639
|
|
|
17640
17640
|
PathExpression(node) {
|
|
17641
17641
|
if (isAttrs(node, stack[stack.length - 1])) {
|
|
17642
|
-
var path = b.path(node.original.
|
|
17642
|
+
var path = b.path(node.original.substring(6));
|
|
17643
17643
|
(true && !(node.this !== false) && (0, _debug.assert)("Using {{attrs}} to reference named arguments is not supported. {{attrs." + path.original + "}} should be updated to {{@" + path.original + "}}. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), node.this !== false));
|
|
17644
17644
|
}
|
|
17645
17645
|
}
|
|
@@ -18739,7 +18739,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|
|
18739
18739
|
value: true
|
|
18740
18740
|
});
|
|
18741
18741
|
_exports.default = void 0;
|
|
18742
|
-
var _default = "4.6.0
|
|
18742
|
+
var _default = "4.6.0";
|
|
18743
18743
|
_exports.default = _default;
|
|
18744
18744
|
});
|
|
18745
18745
|
define("simple-html-tokenizer", ["exports"], function (_exports) {
|