@@ -9,18 +9,6 @@ import { Tree } from '@angular-devkit/schematics';
9
9
import { SchematicTestRunner } from '@angular-devkit/schematics/testing' ;
10
10
import { readJsonInTree , serializeJson , updateJsonInTree } from './ast-utils' ;
11
11
12
- const recommendations = [
13
- 'angular.ng-template' ,
14
- 'nrwl.angular-console' ,
15
- 'ms-vscode.vscode-typescript-tslint-plugin' ,
16
- 'Mikael.Angular-BeastCode' ,
17
- 'EditorConfig.EditorConfig' ,
18
- 'msjsdiag.debugger-for-chrome' ,
19
- 'eg2.vscode-npm-script' ,
20
- 'PKief.material-icon-theme' ,
21
- 'natewallace.angular2-inline' ,
22
- ] ;
23
-
24
12
describe ( 'Update 8.0.0' , ( ) => {
25
13
let initialTree : Tree ;
26
14
let schematicRunner : SchematicTestRunner ;
@@ -46,7 +34,10 @@ describe('Update 8.0.0', () => {
46
34
. runSchematicAsync ( 'migration-07' , { } , initialTree )
47
35
. toPromise ( ) ;
48
36
49
- expect ( readJsonInTree ( result , '.vscode/extensions.json' ) ) . toEqual ( { recommendations} ) ;
37
+ expect ( readJsonInTree ( result , '.vscode/extensions.json' ) ) . toEqual ( {
38
+ recommendations : [
39
+ 'angular.ng-template' , 'nrwl.angular-console' , 'ms-vscode.vscode-typescript-tslint-plugin' ] ,
40
+ } ) ;
50
41
} ) ;
51
42
52
43
it ( 'should add to existing vscode extension recommendations' , async ( ) => {
@@ -55,7 +46,9 @@ describe('Update 8.0.0', () => {
55
46
updateJsonInTree ( '.vscode/extensions.json' , ( ) => ( {
56
47
recommendations : [
57
48
'eamodio.gitlens' ,
58
- ...recommendations ] ,
49
+ 'angular.ng-template' ,
50
+ 'nrwl.angular-console' ,
51
+ 'ms-vscode.vscode-typescript-tslint-plugin' ] ,
59
52
} ) ) ,
60
53
initialTree ,
61
54
)
@@ -68,7 +61,9 @@ describe('Update 8.0.0', () => {
68
61
expect ( readJsonInTree ( result , '.vscode/extensions.json' ) ) . toEqual ( {
69
62
recommendations : [
70
63
'eamodio.gitlens' ,
71
- ...recommendations ] ,
64
+ 'angular.ng-template' ,
65
+ 'nrwl.angular-console' ,
66
+ 'ms-vscode.vscode-typescript-tslint-plugin' ] ,
72
67
} ) ;
73
68
} ) ;
74
69
} ) ;
0 commit comments