Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 648b943

Browse files
clydinhansl
authored andcommitted
test(@angular-devkit/build-angular): actually test lazyModules option
1 parent be8c872 commit 648b943

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/angular_devkit/build_angular/test/browser/lazy-module_spec_large.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ describe('Browser Builder lazy modules', () => {
182182

183183
it(`supports extra lazy modules array`, (done) => {
184184
host.writeMultipleFiles(lazyModuleFiles);
185-
host.writeMultipleFiles(lazyModuleImport);
186185
host.writeMultipleFiles({
187186
'src/app/app.component.ts': `
188187
import { Component, SystemJsNgModuleLoader } from '@angular/core';
@@ -196,7 +195,7 @@ describe('Browser Builder lazy modules', () => {
196195
title = 'app';
197196
constructor(loader: SystemJsNgModuleLoader) {
198197
// Module will be split at build time and loaded when requested below
199-
loader.load('app/lazy/lazy.module#LazyModule')
198+
loader.load('src/app/lazy/lazy.module#LazyModule')
200199
.then((factory) => { /* Use factory here */ });
201200
}
202201
}`,
@@ -207,7 +206,7 @@ describe('Browser Builder lazy modules', () => {
207206

208207
runTargetSpec(host, browserTargetSpec, overrides).pipe(
209208
tap((buildEvent) => expect(buildEvent.success).toBe(true)),
210-
tap(() => expect(host.scopedSync().exists(join(outputPath, 'lazy-lazy-module.js')))
209+
tap(() => expect(host.scopedSync().exists(join(outputPath, 'src-app-lazy-lazy-module.js')))
211210
.toBe(true)),
212211
).subscribe(undefined, done.fail, done);
213212
}, Timeout.Basic);

0 commit comments

Comments
 (0)