refactor(@schematics/angular): remove unused local variables

`messages` is unused from the spec and thus can be removed.
This commit is contained in:
Alan Agius 2022-12-20 10:07:32 +00:00 committed by angular-robot[bot]
parent 1000e8e051
commit 759344d2e9

View File

@ -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',