mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
refactor(@schematics/angular): remove unused local variables
`messages` is unused from the spec and thus can be removed.
This commit is contained in:
parent
1000e8e051
commit
759344d2e9
@ -37,15 +37,12 @@ describe('Application Schematic', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let applicationTree: UnitTestTree;
|
let applicationTree: UnitTestTree;
|
||||||
const messages: string[] = [];
|
|
||||||
schematicRunner.logger.subscribe((x) => messages.push(x.message));
|
|
||||||
|
|
||||||
function runEnvironmentsSchematic(): Promise<UnitTestTree> {
|
function runEnvironmentsSchematic(): Promise<UnitTestTree> {
|
||||||
return schematicRunner.runSchematic('environments', defaultOptions, applicationTree);
|
return schematicRunner.runSchematic('environments', defaultOptions, applicationTree);
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
messages.length = 0;
|
|
||||||
const workspaceTree = await schematicRunner.runSchematic('workspace', workspaceOptions);
|
const workspaceTree = await schematicRunner.runSchematic('workspace', workspaceOptions);
|
||||||
applicationTree = await schematicRunner.runSchematic(
|
applicationTree = await schematicRunner.runSchematic(
|
||||||
'application',
|
'application',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user