Skip to content

Commit 3192dfa

Browse files
devversionjelbourn
authored andcommitted
refactor(schematics): rename migration entry-points (#13333)
* In favor of consistency, we should rename the migration entry-points for Material similarly to the CDK migration entry-points. Also `migration-01` and `migration-01` is pretty much saying nothing about what it does.
1 parent ac3f8c4 commit 3192dfa

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/lib/schematics/migration.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
33
"schematics": {
4-
"migration-01": {
4+
"migration-v6": {
55
"version": "6",
66
"description": "Updates Angular Material to v6",
77
"factory": "./ng-update/index#updateToV6"
88
},
9-
"migration-02": {
9+
"migration-v7": {
1010
"version": "7",
1111
"description": "Updates Angular Material to v7",
1212
"factory": "./ng-update/index#updateToV7"

src/lib/schematics/ng-update/test-cases/misc/constructor-checks.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {resolveBazelDataFile, runTestCases} from '../index.spec';
33
describe('constructor checks', () => {
44

55
it('should properly report invalid constructor expression signatures', async () => {
6-
const {logOutput} = await runTestCases('migration-01', {
6+
const {logOutput} = await runTestCases('migration-v6', {
77
'constructor-checks': resolveBazelDataFile(`misc/constructor-checks_input.ts`)
88
});
99

src/lib/schematics/ng-update/test-cases/misc/import-checks.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {resolveBazelDataFile, runTestCases} from '../index.spec';
33
describe('v6 import misc checks', () => {
44

55
it('should report imports for deleted animation constants', async () => {
6-
const {logOutput} = await runTestCases('migration-01', {
6+
const {logOutput} = await runTestCases('migration-v6', {
77
'import-checks': resolveBazelDataFile(`misc/import-checks_input.ts`)
88
});
99

src/lib/schematics/ng-update/test-cases/misc/method-call-checks.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {resolveBazelDataFile, runTestCases} from '../index.spec';
33
describe('v6 method call checks', () => {
44

55
it('should properly report invalid method calls', async () => {
6-
const {logOutput} = await runTestCases('migration-01', {
6+
const {logOutput} = await runTestCases('migration-v6', {
77
'method-call-checks': resolveBazelDataFile(`misc/method-call-checks_input.ts`)
88
});
99

src/lib/schematics/ng-update/test-cases/v6-test-cases.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('v6 upgrade test cases', () => {
2525
return inputs;
2626
}, {});
2727

28-
const {tempPath} = await runTestCases('migration-01', testCaseInputs);
28+
const {tempPath} = await runTestCases('migration-v6', testCaseInputs);
2929

3030
testCasesOutputPath = join(tempPath, 'projects/material/src/test-cases/');
3131
});

src/lib/schematics/ng-update/test-cases/v7-test-cases.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('v7 upgrade test cases', () => {
2020
return inputs;
2121
}, {});
2222

23-
const {tempPath} = await runTestCases('migration-02', testCaseInputs);
23+
const {tempPath} = await runTestCases('migration-v7', testCaseInputs);
2424

2525
testCasesOutputPath = join(tempPath, 'projects/material/src/test-cases/');
2626
});

0 commit comments

Comments
 (0)