mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
test(@schematics/update): use HostTree instead of VirtualTree
This commit is contained in:
parent
af8e7ea333
commit
a267783df6
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
import { virtualFs } from '@angular-devkit/core';
|
||||
import { HostTree, VirtualTree } from '@angular-devkit/schematics';
|
||||
import { HostTree } from '@angular-devkit/schematics';
|
||||
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
@ -16,7 +16,7 @@ describe('@schematics/update:migrate', () => {
|
||||
'@schematics/update', __dirname + '/../collection.json',
|
||||
);
|
||||
let host: virtualFs.test.TestHost;
|
||||
let appTree: UnitTestTree = new UnitTestTree(new VirtualTree());
|
||||
let appTree: UnitTestTree = new UnitTestTree(new HostTree());
|
||||
|
||||
beforeEach(() => {
|
||||
host = new virtualFs.test.TestHost({});
|
||||
|
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
import { normalize, virtualFs } from '@angular-devkit/core';
|
||||
import { HostTree, VirtualTree } from '@angular-devkit/schematics';
|
||||
import { HostTree } from '@angular-devkit/schematics';
|
||||
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
|
||||
import { map } from 'rxjs/operators';
|
||||
import * as semver from 'semver';
|
||||
@ -36,7 +36,7 @@ describe('@schematics/update', () => {
|
||||
'@schematics/update', __dirname + '/../collection.json',
|
||||
);
|
||||
let host: virtualFs.test.TestHost;
|
||||
let appTree: UnitTestTree = new UnitTestTree(new VirtualTree());
|
||||
let appTree: UnitTestTree = new UnitTestTree(new HostTree());
|
||||
|
||||
beforeEach(() => {
|
||||
host = new virtualFs.test.TestHost({
|
||||
|
Loading…
x
Reference in New Issue
Block a user