Skip to content

Commit

Permalink
chore: fix cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Jan 3, 2025
1 parent fbf35bc commit 17bdfe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schematics/empty/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
2 changes: 1 addition & 1 deletion schematics/list/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
});

Expand Down

0 comments on commit 17bdfe7

Please sign in to comment.