ember-source 6.2.0-alpha.6 → 6.2.0-beta.1
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/blueprints/-addon-import.js +0 -9
- package/blueprints/acceptance-test/index.js +2 -2
- package/blueprints/component/index.js +7 -22
- package/blueprints/component-addon/index.js +0 -9
- package/blueprints/component-class/index.js +7 -22
- package/blueprints/component-class-addon/index.js +0 -9
- package/blueprints/component-test/index.js +2 -2
- package/blueprints/controller/index.js +2 -2
- package/blueprints/controller-test/index.js +2 -2
- package/blueprints/helper/index.js +2 -2
- package/blueprints/helper-test/index.js +2 -2
- package/blueprints/initializer/index.js +2 -2
- package/blueprints/initializer-test/index.js +2 -2
- package/blueprints/instance-initializer/index.js +2 -2
- package/blueprints/instance-initializer-test/index.js +2 -2
- package/blueprints/route/index.js +2 -2
- package/blueprints/route-addon/index.js +0 -9
- package/blueprints/route-test/index.js +2 -2
- package/blueprints/service/index.js +2 -2
- package/blueprints/service-test/index.js +2 -2
- package/blueprints/util/index.js +2 -2
- package/blueprints/util-test/index.js +2 -2
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- package/dist/ember-testing.js +1 -1
- package/dist/ember.debug.js +13 -2
- package/dist/ember.prod.js +13 -2
- package/dist/packages/@ember/-internals/deprecations/index.js +9 -0
- package/dist/packages/@ember/service/index.js +3 -0
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +9 -7
- package/package.json +5 -7
- package/types/stable/@ember/-internals/deprecations/index.d.ts +6 -0
- package/types/stable/@ember/service/index.d.ts +1 -0
- package/blueprints/-maybe-polyfill-typescript-blueprints.js +0 -19
- package/blueprints/initializer-addon/files/__root__/__path__/__name__.ts +0 -1
- package/blueprints/instance-initializer-addon/files/__root__/__path__/__name__.ts +0 -1
- package/blueprints-js/acceptance-test/qunit-files/tests/acceptance/__name__-test.js +0 -12
- package/blueprints-js/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +0 -13
- package/blueprints-js/component/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/component/files/__root__/__templatepath__/__templatename__.hbs +0 -1
- package/blueprints-js/component-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/component-class/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/component-class-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/component-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -31
- package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -36
- package/blueprints-js/controller/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/helper/files/__root__/helpers/__name__.js +0 -5
- package/blueprints-js/helper-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/helper-test/qunit-files/__root__/__testType__/helpers/__name__-test.js +0 -15
- package/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js +0 -17
- package/blueprints-js/initializer/files/__root__/initializers/__name__.js +0 -5
- package/blueprints-js/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +0 -25
- package/blueprints-js/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -37
- package/blueprints-js/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -5
- package/blueprints-js/instance-initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +0 -26
- package/blueprints-js/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -39
- package/blueprints-js/mixin/files/__root__/mixins/__name__.js +0 -3
- package/blueprints-js/mixin-test/qunit-files/__root__/__testType__/__name__-test.js +0 -12
- package/blueprints-js/mixin-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +0 -12
- package/blueprints-js/route/files/__root__/__path__/__name__.js +0 -9
- package/blueprints-js/route/files/__root__/__templatepath__/__templatename__.hbs +0 -2
- package/blueprints-js/route-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/route-addon/files/__root__/__templatepath__/__templatename__.js +0 -1
- package/blueprints-js/route-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -11
- package/blueprints-js/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -11
- package/blueprints-js/service/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/service-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/template/files/__root__/__path__/__name__.hbs +0 -0
- package/blueprints-js/util/files/__root__/utils/__name__.js +0 -3
- package/blueprints-js/util-test/qunit-files/__root__/__testType__/__name__-test.js +0 -10
- package/blueprints-js/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +0 -10
- /package/{blueprints-js → blueprints}/initializer-addon/files/__root__/__path__/__name__.js +0 -0
- /package/{blueprints-js → blueprints}/instance-initializer-addon/files/__root__/__path__/__name__.js +0 -0
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "6.2.0-
|
|
6
|
+
"version": "6.2.0-beta.1"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -2600,7 +2600,7 @@
|
|
|
2600
2600
|
"namespaces": {},
|
|
2601
2601
|
"tag": "module",
|
|
2602
2602
|
"file": "packages/@ember/service/index.ts",
|
|
2603
|
-
"line":
|
|
2603
|
+
"line": 94,
|
|
2604
2604
|
"access": "public",
|
|
2605
2605
|
"tagname": ""
|
|
2606
2606
|
},
|
|
@@ -4326,7 +4326,7 @@
|
|
|
4326
4326
|
"module": "@ember/service",
|
|
4327
4327
|
"namespace": "",
|
|
4328
4328
|
"file": "packages/@ember/service/index.ts",
|
|
4329
|
-
"line":
|
|
4329
|
+
"line": 94,
|
|
4330
4330
|
"extends": "EmberObject",
|
|
4331
4331
|
"since": "1.10.0",
|
|
4332
4332
|
"access": "public",
|
|
@@ -18628,7 +18628,7 @@
|
|
|
18628
18628
|
},
|
|
18629
18629
|
{
|
|
18630
18630
|
"file": "packages/@ember/service/index.ts",
|
|
18631
|
-
"line":
|
|
18631
|
+
"line": 11,
|
|
18632
18632
|
"itemtype": "method",
|
|
18633
18633
|
"name": "inject",
|
|
18634
18634
|
"static": 1,
|
|
@@ -18646,12 +18646,14 @@
|
|
|
18646
18646
|
},
|
|
18647
18647
|
"access": "public",
|
|
18648
18648
|
"tagname": "",
|
|
18649
|
+
"deprecated": true,
|
|
18650
|
+
"deprecationMessage": "Please import `service` instead.",
|
|
18649
18651
|
"class": "@ember/service",
|
|
18650
18652
|
"module": "@ember/service"
|
|
18651
18653
|
},
|
|
18652
18654
|
{
|
|
18653
18655
|
"file": "packages/@ember/service/index.ts",
|
|
18654
|
-
"line":
|
|
18656
|
+
"line": 37,
|
|
18655
18657
|
"description": "Creates a property that lazily looks up a service in the container. There are\nno restrictions as to what objects a service can be injected into.\n\nExample:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ApplicationRoute extends Route {\n @service('auth') authManager;\n\n model() {\n return this.authManager.findCurrentUser();\n }\n}\n```\n\nClassic Class Example:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default Route.extend({\n authManager: service('auth'),\n\n model() {\n return this.get('authManager').findCurrentUser();\n }\n});\n```\n\nThis example will create an `authManager` property on the application route\nthat looks up the `auth` service in the container, making it easily accessible\nin the `model` hook.",
|
|
18656
18658
|
"itemtype": "method",
|
|
18657
18659
|
"name": "service",
|
|
@@ -18675,7 +18677,7 @@
|
|
|
18675
18677
|
},
|
|
18676
18678
|
{
|
|
18677
18679
|
"file": "packages/@ember/service/index.ts",
|
|
18678
|
-
"line":
|
|
18680
|
+
"line": 104,
|
|
18679
18681
|
"description": "A type registry for Ember `Service`s. Meant to be declaration-merged so string\nlookups resolve to the correct type.\n\nBlueprints should include such a declaration merge for TypeScript:\n\n```ts\nimport Service from '@ember/service';\n\nexport default class ExampleService extends Service {\n // ...\n}\n\ndeclare module '@ember/service' {\n export interface Registry {\n example: ExampleService;\n }\n}\n```\n\nThen `@service` can check that the service is registered correctly, and APIs\nlike `owner.lookup('service:example')` can return `ExampleService`.",
|
|
18680
18682
|
"class": "Service",
|
|
18681
18683
|
"module": "@ember/service"
|
|
@@ -20104,7 +20106,7 @@
|
|
|
20104
20106
|
},
|
|
20105
20107
|
{
|
|
20106
20108
|
"message": "Missing item type\nA type registry for Ember `Service`s. Meant to be declaration-merged so string\nlookups resolve to the correct type.\n\nBlueprints should include such a declaration merge for TypeScript:\n\n```ts\nimport Service from '@ember/service';\n\nexport default class ExampleService extends Service {\n // ...\n}\n\ndeclare module '@ember/service' {\n export interface Registry {\n example: ExampleService;\n }\n}\n```\n\nThen `@service` can check that the service is registered correctly, and APIs\nlike `owner.lookup('service:example')` can return `ExampleService`.",
|
|
20107
|
-
"line": " packages/@ember/service/index.ts:
|
|
20109
|
+
"line": " packages/@ember/service/index.ts:104"
|
|
20108
20110
|
},
|
|
20109
20111
|
{
|
|
20110
20112
|
"message": "Missing item type\nAll possible options passed to `template()` may specify a `moduleName`.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "6.2.0-
|
|
3
|
+
"version": "6.2.0-beta.1",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"build-metadata.json",
|
|
24
24
|
"blueprints",
|
|
25
|
-
"blueprints-js",
|
|
26
25
|
"dist/packages",
|
|
27
26
|
"dist/dependencies",
|
|
28
27
|
"dist/ember-template-compiler.js",
|
|
@@ -54,9 +53,7 @@
|
|
|
54
53
|
"lint:eslint:fix": "npm-run-all \"lint:eslint --fix\"",
|
|
55
54
|
"lint:fix": "npm-run-all lint:*:fix",
|
|
56
55
|
"test": "node bin/run-tests.js",
|
|
57
|
-
"test:blueprints
|
|
58
|
-
"test:blueprints:ts": "mocha node-tests/blueprints/**/*-test.js",
|
|
59
|
-
"test:blueprints": "pnpm test:blueprints:js && pnpm test:blueprints:ts",
|
|
56
|
+
"test:blueprints": "mocha node-tests/blueprints/**/*-test.js",
|
|
60
57
|
"test:node": "qunit tests/node/**/*-test.js",
|
|
61
58
|
"test:browserstack": "node bin/run-browserstack-tests.js",
|
|
62
59
|
"test:wip": "vite build --mode development --minify false && testem ci",
|
|
@@ -397,13 +394,14 @@
|
|
|
397
394
|
]
|
|
398
395
|
}
|
|
399
396
|
},
|
|
397
|
+
"packageManager": "pnpm@8.10.0",
|
|
400
398
|
"volta": {
|
|
401
399
|
"node": "16.20.0",
|
|
402
400
|
"pnpm": "8.10.0"
|
|
403
401
|
},
|
|
404
|
-
"_originalVersion": "6.2.0-
|
|
402
|
+
"_originalVersion": "6.2.0-beta.1",
|
|
405
403
|
"_versionPreviouslyCalculated": true,
|
|
406
404
|
"publishConfig": {
|
|
407
|
-
"tag": "
|
|
405
|
+
"tag": "beta"
|
|
408
406
|
}
|
|
409
407
|
}
|
|
@@ -39,6 +39,12 @@ declare module '@ember/-internals/deprecations' {
|
|
|
39
39
|
isEnabled: boolean;
|
|
40
40
|
isRemoved: boolean;
|
|
41
41
|
};
|
|
42
|
+
DEPRECATE_IMPORT_INJECT: {
|
|
43
|
+
options: DeprecationOptions;
|
|
44
|
+
test: boolean;
|
|
45
|
+
isEnabled: boolean;
|
|
46
|
+
isRemoved: boolean;
|
|
47
|
+
};
|
|
42
48
|
};
|
|
43
49
|
export function deprecateUntil(message: string, deprecation: DeprecationObject): void;
|
|
44
50
|
export {};
|
|
@@ -14,6 +14,7 @@ declare module '@ember/service' {
|
|
|
14
14
|
the property's name
|
|
15
15
|
@return {ComputedDecorator} injection decorator instance
|
|
16
16
|
@public
|
|
17
|
+
@deprecated Please import `service` instead.
|
|
17
18
|
*/
|
|
18
19
|
export function inject(name: string): PropertyDecorator;
|
|
19
20
|
export function inject(...args: [ElementDescriptor[0], ElementDescriptor[1]]): void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
2
|
-
const EMBER_TYPESCRIPT_BLUEPRINTS = true;
|
|
3
|
-
|
|
4
|
-
function canEmitTypeScript() {
|
|
5
|
-
return 'EMBER_TYPESCRIPT_BLUEPRINTS' in process.env
|
|
6
|
-
? process.env.EMBER_TYPESCRIPT_BLUEPRINTS === 'true'
|
|
7
|
-
: EMBER_TYPESCRIPT_BLUEPRINTS;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
module.exports = function (context) {
|
|
11
|
-
let canUseTypeScript = canEmitTypeScript();
|
|
12
|
-
if (canUseTypeScript) {
|
|
13
|
-
typescriptBlueprintPolyfill(context);
|
|
14
|
-
} else {
|
|
15
|
-
// Use the plain old JS templates from before
|
|
16
|
-
context.path = context.path.replace('blueprints', 'blueprints-js');
|
|
17
|
-
}
|
|
18
|
-
return canUseTypeScript;
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, initialize } from '<%= modulePath %>';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, initialize } from '<%= modulePath %>';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { test } from 'qunit';
|
|
2
|
-
import moduleForAcceptance from '<%= testFolderRoot %>/tests/helpers/module-for-acceptance';
|
|
3
|
-
|
|
4
|
-
moduleForAcceptance('<%= friendlyTestName %>');
|
|
5
|
-
|
|
6
|
-
test('visiting /<%= dasherizedModuleName %>', function (assert) {
|
|
7
|
-
visit('/<%= dasherizedModuleName %>');
|
|
8
|
-
|
|
9
|
-
andThen(function () {
|
|
10
|
-
assert.strictEqual(currentURL(), '/<%= dasherizedModuleName %>');
|
|
11
|
-
});
|
|
12
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { module, test } from 'qunit';
|
|
2
|
-
import { visit, currentURL } from '@ember/test-helpers';
|
|
3
|
-
import { setupApplicationTest } from '<%= modulePrefix %>/tests/helpers';
|
|
4
|
-
|
|
5
|
-
module('<%= friendlyTestName %>', function (hooks) {
|
|
6
|
-
setupApplicationTest(hooks);
|
|
7
|
-
|
|
8
|
-
test('visiting /<%= dasherizedModuleName %>', async function (assert) {
|
|
9
|
-
await visit('/<%= dasherizedModuleName %>');
|
|
10
|
-
|
|
11
|
-
assert.strictEqual(currentURL(), '/<%= dasherizedModuleName %>');
|
|
12
|
-
});
|
|
13
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{{yield}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '<%= modulePath %>';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '<%= modulePath %>';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { moduleForComponent, test } from 'ember-qunit';<% if (testType === 'integration') { %>
|
|
2
|
-
import hbs from 'htmlbars-inline-precompile';<% } %>
|
|
3
|
-
|
|
4
|
-
moduleForComponent('<%= componentPathName %>', '<%= friendlyTestDescription %>', {
|
|
5
|
-
<% if (testType === 'integration' ) { %>integration: true,<% } else if(testType === 'unit') { %>// Specify the other units that are required for this test
|
|
6
|
-
// needs: ['component:foo', 'helper:bar'],
|
|
7
|
-
unit: true,<% } %>
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
test('it renders', function (assert) {<% if (testType === 'integration' ) { %>
|
|
11
|
-
// Set any properties with this.set('myProperty', 'value');
|
|
12
|
-
// Handle any actions with this.on('myAction', function(val) { ... });
|
|
13
|
-
|
|
14
|
-
this.render(hbs`<%= selfCloseComponent(componentName) %>`);
|
|
15
|
-
|
|
16
|
-
assert.strictEqual(this.$().text().trim(), '');
|
|
17
|
-
|
|
18
|
-
// Template block usage:
|
|
19
|
-
this.render(hbs`
|
|
20
|
-
<%= openComponent(componentName) %>
|
|
21
|
-
template block text
|
|
22
|
-
<%= closeComponent(componentName) %>
|
|
23
|
-
`);
|
|
24
|
-
|
|
25
|
-
assert.strictEqual(this.$().text().trim(), 'template block text');<% } else if(testType === 'unit') { %>
|
|
26
|
-
// Creates the component instance
|
|
27
|
-
/*let component =*/ this.subject();
|
|
28
|
-
// Renders the component to the page
|
|
29
|
-
this.render();
|
|
30
|
-
assert.strictEqual(this.$().text().trim(), '');<% } %>
|
|
31
|
-
});
|
package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<% if (testType === 'integration') { %>import { module, test } from 'qunit';
|
|
2
|
-
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
3
|
-
import { render } from '@ember/test-helpers';
|
|
4
|
-
<%= hbsImportStatement %>
|
|
5
|
-
|
|
6
|
-
module('<%= friendlyTestDescription %>', function (hooks) {
|
|
7
|
-
setupRenderingTest(hooks);
|
|
8
|
-
|
|
9
|
-
test('it renders', async function (assert) {
|
|
10
|
-
// Set any properties with this.set('myProperty', 'value');
|
|
11
|
-
// Handle any actions with this.set('myAction', function(val) { ... });
|
|
12
|
-
|
|
13
|
-
await render(hbs`<%= selfCloseComponent(componentName) %>`);
|
|
14
|
-
|
|
15
|
-
assert.dom().hasText('');
|
|
16
|
-
|
|
17
|
-
// Template block usage:
|
|
18
|
-
await render(hbs`
|
|
19
|
-
<%= openComponent(componentName) %>
|
|
20
|
-
template block text
|
|
21
|
-
<%= closeComponent(componentName) %>
|
|
22
|
-
`);
|
|
23
|
-
|
|
24
|
-
assert.dom().hasText('template block text');
|
|
25
|
-
});
|
|
26
|
-
});<% } else if (testType === 'unit') { %>import { module, test } from 'qunit';
|
|
27
|
-
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
28
|
-
|
|
29
|
-
module('<%= friendlyTestDescription %>', function (hooks) {
|
|
30
|
-
setupTest(hooks);
|
|
31
|
-
|
|
32
|
-
test('it exists', function (assert) {
|
|
33
|
-
let component = this.owner.factoryFor('component:<%= componentPathName %>').create();
|
|
34
|
-
assert.ok(component);
|
|
35
|
-
});
|
|
36
|
-
});<% } %>
|
package/blueprints-js/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { moduleFor, test } from 'ember-qunit';
|
|
2
|
-
|
|
3
|
-
moduleFor('controller:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>', {
|
|
4
|
-
// Specify the other units that are required for this test.
|
|
5
|
-
// needs: ['controller:foo']
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
// TODO: Replace this with your real tests.
|
|
9
|
-
test('it exists', function (assert) {
|
|
10
|
-
let controller = this.subject();
|
|
11
|
-
assert.ok(controller);
|
|
12
|
-
});
|
package/blueprints-js/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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 controller = this.owner.lookup('controller:<%= controllerPathName %>');
|
|
10
|
-
assert.ok(controller);
|
|
11
|
-
});
|
|
12
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '<%= modulePath %>';
|
package/blueprints-js/helper-test/qunit-files/__root__/__testType__/helpers/__name__-test.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { moduleForComponent, test } from 'ember-qunit';
|
|
2
|
-
import hbs from 'htmlbars-inline-precompile';
|
|
3
|
-
|
|
4
|
-
moduleForComponent('<%= dasherizedModuleName %>', 'helper:<%= dasherizedModuleName %>', {
|
|
5
|
-
integration: true,
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
// TODO: Replace this with your real tests.
|
|
9
|
-
test('it renders', function (assert) {
|
|
10
|
-
this.set('inputValue', '1234');
|
|
11
|
-
|
|
12
|
-
this.render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`);
|
|
13
|
-
|
|
14
|
-
assert.strictEqual(this.$().text().trim(), '1234');
|
|
15
|
-
});
|
package/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { module, test } from 'qunit';
|
|
2
|
-
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
|
|
3
|
-
import { render } from '@ember/test-helpers';
|
|
4
|
-
<%= hbsImportStatement %>
|
|
5
|
-
|
|
6
|
-
module('<%= friendlyTestName %>', function (hooks) {
|
|
7
|
-
setupRenderingTest(hooks);
|
|
8
|
-
|
|
9
|
-
// TODO: Replace this with your real tests.
|
|
10
|
-
test('it renders', async function (assert) {
|
|
11
|
-
this.set('inputValue', '1234');
|
|
12
|
-
|
|
13
|
-
await render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`);
|
|
14
|
-
|
|
15
|
-
assert.dom().hasText('1234');
|
|
16
|
-
});
|
|
17
|
-
});
|
package/blueprints-js/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Application from '@ember/application';
|
|
2
|
-
import { run } from '@ember/runloop';
|
|
3
|
-
|
|
4
|
-
import { initialize } from '<%= modulePrefix %>/initializers/<%= dasherizedModuleName %>';
|
|
5
|
-
import { module, test } from 'qunit';
|
|
6
|
-
<% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';\n<% } %>
|
|
7
|
-
module('<%= friendlyTestName %>', {
|
|
8
|
-
beforeEach() {
|
|
9
|
-
run(() => {
|
|
10
|
-
this.application = Application.create();
|
|
11
|
-
this.application.deferReadiness();
|
|
12
|
-
});
|
|
13
|
-
},
|
|
14
|
-
afterEach() {
|
|
15
|
-
<% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
// TODO: Replace this with your real tests.
|
|
20
|
-
test('it works', function (assert) {
|
|
21
|
-
initialize(this.application);
|
|
22
|
-
|
|
23
|
-
// you would normally confirm the results of the initializer here
|
|
24
|
-
assert.ok(true);
|
|
25
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import Application from '@ember/application';
|
|
2
|
-
|
|
3
|
-
import config from '<%= modulePrefix %>/config/environment';
|
|
4
|
-
import { initialize } from '<%= modulePrefix %>/initializers/<%= dasherizedModuleName %>';
|
|
5
|
-
import { module, test } from 'qunit';
|
|
6
|
-
import Resolver from 'ember-resolver';
|
|
7
|
-
<% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>
|
|
8
|
-
|
|
9
|
-
module('<%= friendlyTestName %>', function (hooks) {
|
|
10
|
-
hooks.beforeEach(function () {
|
|
11
|
-
this.TestApplication = class TestApplication extends Application {
|
|
12
|
-
modulePrefix = config.modulePrefix;
|
|
13
|
-
podModulePrefix = config.podModulePrefix;
|
|
14
|
-
Resolver = Resolver;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
this.TestApplication.initializer({
|
|
18
|
-
name: 'initializer under test',
|
|
19
|
-
initialize,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
this.application = this.TestApplication.create({
|
|
23
|
-
autoboot: false,
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
hooks.afterEach(function () {
|
|
28
|
-
<% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
// TODO: Replace this with your real tests.
|
|
32
|
-
test('it works', async function (assert) {
|
|
33
|
-
await this.application.boot();
|
|
34
|
-
|
|
35
|
-
assert.ok(true);
|
|
36
|
-
});
|
|
37
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import Application from '@ember/application';
|
|
2
|
-
import { run } from '@ember/runloop';
|
|
3
|
-
import { initialize } from '<%= modulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
|
|
4
|
-
import { module, test } from 'qunit';<% if (destroyAppExists) { %>
|
|
5
|
-
import destroyApp from '../../helpers/destroy-app';<% } %>
|
|
6
|
-
|
|
7
|
-
module('<%= friendlyTestName %>', {
|
|
8
|
-
beforeEach() {
|
|
9
|
-
run(() => {
|
|
10
|
-
this.application = Application.create();
|
|
11
|
-
this.appInstance = this.application.buildInstance();
|
|
12
|
-
});
|
|
13
|
-
},
|
|
14
|
-
afterEach() {
|
|
15
|
-
run(this.appInstance, 'destroy');
|
|
16
|
-
<% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
// TODO: Replace this with your real tests.
|
|
21
|
-
test('it works', function (assert) {
|
|
22
|
-
initialize(this.appInstance);
|
|
23
|
-
|
|
24
|
-
// you would normally confirm the results of the initializer here
|
|
25
|
-
assert.ok(true);
|
|
26
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import Application from '@ember/application';
|
|
2
|
-
|
|
3
|
-
import config from '<%= modulePrefix %>/config/environment';
|
|
4
|
-
import { initialize } from '<%= modulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
|
|
5
|
-
import { module, test } from 'qunit';
|
|
6
|
-
import Resolver from 'ember-resolver';
|
|
7
|
-
<% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>
|
|
8
|
-
|
|
9
|
-
module('<%= friendlyTestName %>', function (hooks) {
|
|
10
|
-
hooks.beforeEach(function () {
|
|
11
|
-
this.TestApplication = class TestApplication extends Application {
|
|
12
|
-
modulePrefix = config.modulePrefix;
|
|
13
|
-
podModulePrefix = config.podModulePrefix;
|
|
14
|
-
Resolver = Resolver;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
this.TestApplication.instanceInitializer({
|
|
18
|
-
name: 'initializer under test',
|
|
19
|
-
initialize,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
this.application = this.TestApplication.create({
|
|
23
|
-
autoboot: false,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
this.instance = this.application.buildInstance();
|
|
27
|
-
});
|
|
28
|
-
hooks.afterEach(function () {
|
|
29
|
-
<% if (destroyAppExists) { %>destroyApp(this.instance);<% } else { %>run(this.instance, 'destroy');<% } %>
|
|
30
|
-
<% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
// TODO: Replace this with your real tests.
|
|
34
|
-
test('it works', async function (assert) {
|
|
35
|
-
await this.instance.boot();
|
|
36
|
-
|
|
37
|
-
assert.ok(true);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import EmberObject from '@ember/object';
|
|
2
|
-
import <%= classifiedModuleName %>Mixin from '<%= projectName %>/mixins/<%= dasherizedModuleName %>';
|
|
3
|
-
import { module, test } from 'qunit';
|
|
4
|
-
|
|
5
|
-
module('<%= friendlyTestName %>');
|
|
6
|
-
|
|
7
|
-
// TODO: Replace this with your real tests.
|
|
8
|
-
test('it works', function (assert) {
|
|
9
|
-
let <%= classifiedModuleName %>Object = EmberObject.extend(<%= classifiedModuleName %>Mixin);
|
|
10
|
-
let subject = <%= classifiedModuleName %>Object.create();
|
|
11
|
-
assert.ok(subject);
|
|
12
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import EmberObject from '@ember/object';
|
|
2
|
-
import <%= classifiedModuleName %>Mixin from '<%= projectName %>/mixins/<%= dasherizedModuleName %>';
|
|
3
|
-
import { module, test } from 'qunit';
|
|
4
|
-
|
|
5
|
-
module('<%= friendlyTestName %>', function () {
|
|
6
|
-
// TODO: Replace this with your real tests.
|
|
7
|
-
test('it works', function (assert) {
|
|
8
|
-
let <%= classifiedModuleName %>Object = EmberObject.extend(<%= classifiedModuleName %>Mixin);
|
|
9
|
-
let subject = <%= classifiedModuleName %>Object.create();
|
|
10
|
-
assert.ok(subject);
|
|
11
|
-
});
|
|
12
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Route from '@ember/routing/route';
|
|
2
|
-
|
|
3
|
-
export default class <%= classifiedModuleName %>Route extends Route {<% if (hasDynamicSegment) {%>
|
|
4
|
-
model(params) {
|
|
5
|
-
// This route was generated with a dynamic segment. Implement data loading
|
|
6
|
-
// based on that dynamic segment here in the model hook.
|
|
7
|
-
return params;
|
|
8
|
-
}
|
|
9
|
-
<%}%>}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '<%= routeModulePath %>';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '<%= templateModulePath %>';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { moduleFor, test } from 'ember-qunit';
|
|
2
|
-
|
|
3
|
-
moduleFor('route:<%= moduleName %>', '<%= friendlyTestDescription %>', {
|
|
4
|
-
// Specify the other units that are required for this test.
|
|
5
|
-
// needs: ['controller:foo']
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
test('it exists', function (assert) {
|
|
9
|
-
let route = this.subject();
|
|
10
|
-
assert.ok(route);
|
|
11
|
-
});
|
package/blueprints-js/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { module, test } from 'qunit';
|
|
2
|
-
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
3
|
-
|
|
4
|
-
module('<%= friendlyTestDescription %>', function (hooks) {
|
|
5
|
-
setupTest(hooks);
|
|
6
|
-
|
|
7
|
-
test('it exists', function (assert) {
|
|
8
|
-
let route = this.owner.lookup('route:<%= moduleName %>');
|
|
9
|
-
assert.ok(route);
|
|
10
|
-
});
|
|
11
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
});
|
package/blueprints-js/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
});
|
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import <%= camelizedModuleName %> from '<%= modulePrefix %>/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
|
-
});
|