@@ -89,7 +89,7 @@ describe('element', () => {
89
89
90
90
it ( 'should throw error on empty name' , async ( ) => {
91
91
await expectAsync (
92
- testRunner . runSchematic ( 'element ' , appTree )
92
+ testRunner . runSchematic ( 'add ' , appTree )
93
93
) . toBeRejectedWithError (
94
94
InvalidInputOptions ,
95
95
/ D a t a p a t h " " m u s t h a v e r e q u i r e d p r o p e r t y ' n a m e ' /
@@ -100,7 +100,7 @@ describe('element', () => {
100
100
const componentName = 'foo' ;
101
101
await expectAsync (
102
102
testRunner . runSchematic (
103
- 'element ' ,
103
+ 'add ' ,
104
104
{ name : componentName , project : PROJECT_NAME } ,
105
105
appTree
106
106
)
@@ -113,14 +113,14 @@ describe('element', () => {
113
113
it ( 'should throw an exception on existing component' , async ( ) => {
114
114
const componentName = 'button' ;
115
115
await testRunner . runSchematic (
116
- 'element ' ,
116
+ 'add ' ,
117
117
{ name : componentName , project : PROJECT_NAME } ,
118
118
appTree
119
119
) ;
120
120
121
121
await expectAsync (
122
122
testRunner . runSchematic (
123
- 'element ' ,
123
+ 'add ' ,
124
124
{ name : componentName , project : PROJECT_NAME } ,
125
125
appTree
126
126
)
@@ -133,12 +133,12 @@ describe('element', () => {
133
133
it ( 'should not throw an exception if --replace option is used' , async ( ) => {
134
134
const componentName = 'button' ;
135
135
await testRunner . runSchematic (
136
- 'element ' ,
136
+ 'add ' ,
137
137
{ name : componentName , project : PROJECT_NAME } ,
138
138
appTree
139
139
) ;
140
140
await testRunner . runSchematic (
141
- 'element ' ,
141
+ 'add ' ,
142
142
{ name : componentName , project : PROJECT_NAME , replace : true } ,
143
143
appTree
144
144
) ;
@@ -147,7 +147,7 @@ describe('element', () => {
147
147
it ( 'should add components to project files' , async ( ) => {
148
148
const componentName = 'button' ;
149
149
await testRunner . runSchematic (
150
- 'element ' ,
150
+ 'add ' ,
151
151
{ name : componentName , project : PROJECT_NAME } ,
152
152
appTree
153
153
) ;
@@ -165,7 +165,7 @@ describe('element', () => {
165
165
it ( 'should not add spec file by default' , async ( ) => {
166
166
const componentName = 'button' ;
167
167
await testRunner . runSchematic (
168
- 'element ' ,
168
+ 'add ' ,
169
169
{ name : componentName , project : PROJECT_NAME } ,
170
170
appTree
171
171
) ;
@@ -176,7 +176,7 @@ describe('element', () => {
176
176
it ( 'should add spec file if includeTests=true' , async ( ) => {
177
177
const componentName = 'button' ;
178
178
await testRunner . runSchematic (
179
- 'element ' ,
179
+ 'add ' ,
180
180
{ name : componentName , project : PROJECT_NAME , includeTests : true } ,
181
181
appTree
182
182
) ;
@@ -196,7 +196,7 @@ describe('element', () => {
196
196
}
197
197
` ;
198
198
await testRunner . runSchematic (
199
- 'element ' ,
199
+ 'add ' ,
200
200
{ name : componentName , project : PROJECT_NAME , prefix : 'demo' } ,
201
201
appTree
202
202
) ;
0 commit comments