You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: schematics/ng-component/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,17 @@
1
-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2
2
3
3
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
"x-prompt": "What should be the name of the component?"
28
28
},
29
+
"displayBlock": {
30
+
"description": "Specifies if the style will contain `:host { display: block; }`.",
31
+
"type": "boolean",
32
+
"default": false,
33
+
"alias": "b"
34
+
},
29
35
"inlineStyle": {
30
36
"description": "When true, includes styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.",
31
37
"type": "boolean",
@@ -41,8 +47,7 @@
41
47
"standalone": {
42
48
"description": "Whether the generated component is standalone.",
43
49
"type": "boolean",
44
-
"default": true,
45
-
"x-user-analytics": "ep.ng_standalone"
50
+
"default": true
46
51
},
47
52
"viewEncapsulation": {
48
53
"description": "The view encapsulation strategy to use in the new component.",
@@ -71,33 +76,23 @@
71
76
}
72
77
]
73
78
},
74
-
"styleext": {
75
-
"description": "The file extension to use for style files.",
76
-
"type": "string",
77
-
"default": "css",
78
-
"x-deprecated": "Use \"style\" instead."
79
-
},
80
79
"style": {
81
-
"description": "The file extension or preprocessor to use for style files.",
80
+
"description": "The file extension or preprocessor to use for style files, or 'none' to skip generating the style file.",
82
81
"type": "string",
83
82
"default": "css",
84
83
"enum": [
85
84
"css",
86
85
"scss",
87
86
"sass",
88
87
"less",
89
-
"styl"
88
+
"styl",
89
+
"none"
90
90
]
91
91
},
92
-
"spec": {
93
-
"type": "boolean",
94
-
"description": "When true (the default), generates a \"spec.ts\" test file for the new component.",
95
-
"default": true,
96
-
"x-deprecated": "Use \"skipTests\" instead."
97
-
},
98
92
"skipTests": {
99
93
"type": "boolean",
100
-
"description": "When true, does not create \"spec.ts\" test files for the new component."
94
+
"description": "When true, does not create \"spec.ts\" test files for the new component.",
95
+
"default": false
101
96
},
102
97
"flat": {
103
98
"type": "boolean",
@@ -106,7 +101,8 @@
106
101
},
107
102
"skipImport": {
108
103
"type": "boolean",
109
-
"description": "When true, does not import this component into the owning NgModule."
104
+
"description": "When true, does not import this component into the owning NgModule.",
0 commit comments