From 17bdfe719dfa9a1372bbeed62b98d2d1213c4bb3 Mon Sep 17 00:00:00 2001 From: cipchk Date: Sat, 4 Jan 2025 01:37:03 +0800 Subject: [PATCH] chore: fix cli test --- schematics/empty/index.spec.ts | 2 +- schematics/list/index.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schematics/empty/index.spec.ts b/schematics/empty/index.spec.ts index dcce12ff19..21894e2f39 100644 --- a/schematics/empty/index.spec.ts +++ b/schematics/empty/index.spec.ts @@ -73,7 +73,7 @@ describe('Schematic: empty', () => { tree = await runner.runSchematic('empty', { name: 'list', module: 'trade', standalone: true }, tree); [routingPath, tsPath, htmlPath].forEach(path => expect(tree.exists(path)).toBe(true)); expect(tree.exists(servicePath)).toBe(false); - expect(tree.readContent(tsPath)).toContain(`standalone: true,`); + expect(tree.readContent(tsPath)).toContain(`imports:`); expect(tree.readContent(tsPath)).toContain(`SHARED_IMPORTS`); expect(tree.readContent(tsPath)).toContain(`TradeListComponent`); expect(tree.readContent(tsPath)).not.toContain(`styleUrls`); diff --git a/schematics/list/index.spec.ts b/schematics/list/index.spec.ts index ce19279bd4..eaa36995f4 100644 --- a/schematics/list/index.spec.ts +++ b/schematics/list/index.spec.ts @@ -74,7 +74,7 @@ describe('Schematic: list', () => { [routesPath, tsPath, htmlPath].forEach(path => expect(tree.exists(path)).toBe(true)); expect(tree.readContent(routesPath)).toContain(`import { TradeListComponent } from './list/list.component';`); expect(tree.readContent(tsPath)).toContain(`TradeListComponent`); - expect(tree.readContent(tsPath)).toContain(`standalone: true,`); + expect(tree.readContent(tsPath)).toContain(`imports:`); expect(tree.readContent(tsPath)).not.toContain(`styleUrls`); });