Skip to content

Commit e8f504b

Browse files
alkavats1dgp1130
authored andcommitted
refactor: refactored the code and removed the code smells
refactored the code and removed the code smells (cherry picked from commit d526970)
1 parent 27cb294 commit e8f504b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/angular_devkit/build_angular/test/hello-world-app/src/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ getTestBed().initTestEnvironment(
3030
// Then we find all the tests.
3131
const context = require.context('./', true, /\.spec\.ts$/);
3232
// And load the modules.
33-
context.keys().map(context);
33+
context.keys().forEach(context);

packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ getTestBed().initTestEnvironment(
3131
// Then we find all the tests.
3232
const context = require.context('./', true, /\.spec\.ts$/);
3333
// And load the modules.
34-
context.keys().map(context);
34+
context.keys().forEach(context);

packages/schematics/angular/application/files/src/test.ts.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ getTestBed().initTestEnvironment(
2323
// Then we find all the tests.
2424
const context = require.context('./', true, /\.spec\.ts$/);
2525
// And load the modules.
26-
context.keys().map(context);
26+
context.keys().forEach(context);

packages/schematics/angular/library/files/src/test.ts.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ getTestBed().initTestEnvironment(
2424
// Then we find all the tests.
2525
const context = require.context('./', true, /\.spec\.ts$/);
2626
// And load the modules.
27-
context.keys().map(context);
27+
context.keys().forEach(context);

tests/legacy-cli/e2e/assets/10.0-project/src/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDyn
2323
// Then we find all the tests.
2424
const context = require.context('./', true, /\.spec\.ts$/);
2525
// And load the modules.
26-
context.keys().map(context);
26+
context.keys().forEach(context);

0 commit comments

Comments
 (0)