mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 10:11:50 +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;
|
||||
const messages: string[] = [];
|
||||
schematicRunner.logger.subscribe((x) => messages.push(x.message));
|
||||
|
||||
function runEnvironmentsSchematic(): Promise<UnitTestTree> {
|
||||
return schematicRunner.runSchematic('environments', defaultOptions, applicationTree);
|
||||
}
|
||||
|
||||
beforeEach(async () => {
|
||||
messages.length = 0;
|
||||
const workspaceTree = await schematicRunner.runSchematic('workspace', workspaceOptions);
|
||||
applicationTree = await schematicRunner.runSchematic(
|
||||
'application',
|
||||
|
Loading…
x
Reference in New Issue
Block a user