Skip to content

Commit a935ead

Browse files
committed
test(@schematics/angular): use HostTree instead of VirtualTree
1 parent ae9173c commit a935ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schematics/angular/utility/ast-utils_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* found in the LICENSE file at https://angular.io/license
88
*/
99
import { tags } from '@angular-devkit/core';
10-
import { VirtualTree } from '@angular-devkit/schematics';
10+
import { HostTree } from '@angular-devkit/schematics';
1111
import * as ts from 'typescript';
1212
import { Change, InsertChange } from '../utility/change';
1313
import { getFileContent } from '../utility/test';
@@ -19,7 +19,7 @@ function getTsSource(path: string, content: string): ts.SourceFile {
1919
}
2020

2121
function applyChanges(path: string, content: string, changes: Change[]): string {
22-
const tree = new VirtualTree();
22+
const tree = new HostTree();
2323
tree.create(path, content);
2424
const exportRecorder = tree.beginUpdate(path);
2525
for (const change of changes) {

0 commit comments

Comments
 (0)