Skip to content

Commit 759344d

Browse files
alan-agius4angular-robot[bot]
authored andcommitted
refactor(@schematics/angular): remove unused local variables
`messages` is unused from the spec and thus can be removed.
1 parent 1000e8e commit 759344d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/schematics/angular/environments/index_spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,12 @@ describe('Application Schematic', () => {
3737
};
3838

3939
let applicationTree: UnitTestTree;
40-
const messages: string[] = [];
41-
schematicRunner.logger.subscribe((x) => messages.push(x.message));
4240

4341
function runEnvironmentsSchematic(): Promise<UnitTestTree> {
4442
return schematicRunner.runSchematic('environments', defaultOptions, applicationTree);
4543
}
4644

4745
beforeEach(async () => {
48-
messages.length = 0;
4946
const workspaceTree = await schematicRunner.runSchematic('workspace', workspaceOptions);
5047
applicationTree = await schematicRunner.runSchematic(
5148
'application',

0 commit comments

Comments
 (0)