@@ -171,7 +171,8 @@ describe('ComponentSetBuilder', () => {
171
171
expect ( fromSourceArgs ) . to . have . deep . property ( 'fsPaths' , [ packageDir1 ] ) ;
172
172
const filter = new ComponentSet ( ) ;
173
173
filter . add ( { type : 'ApexClass' , fullName : '*' } ) ;
174
- expect ( fromSourceArgs ) . to . have . deep . property ( 'include' , filter ) ;
174
+ expect ( fromSourceArgs ) . to . have . property ( 'include' ) ;
175
+ expect ( fromSourceArgs . include . getSourceComponents ( ) ) . to . deep . equal ( filter . getSourceComponents ( ) ) ;
175
176
expect ( compSet . size ) . to . equal ( 1 ) ;
176
177
expect ( compSet . has ( apexClassComponent ) ) . to . equal ( true ) ;
177
178
} ) ;
@@ -213,7 +214,8 @@ describe('ComponentSetBuilder', () => {
213
214
expect ( fromSourceArgs ) . to . have . deep . property ( 'fsPaths' , [ packageDir1 ] ) ;
214
215
const filter = new ComponentSet ( ) ;
215
216
filter . add ( { type : 'ApexClass' , fullName : 'MyClass' } ) ;
216
- expect ( fromSourceArgs ) . to . have . deep . property ( 'include' , filter ) ;
217
+ expect ( fromSourceArgs ) . to . have . property ( 'include' ) ;
218
+ expect ( fromSourceArgs . include . getSourceComponents ( ) ) . to . deep . equal ( filter . getSourceComponents ( ) ) ;
217
219
expect ( compSet . size ) . to . equal ( 1 ) ;
218
220
expect ( compSet . has ( apexClassComponent ) ) . to . equal ( true ) ;
219
221
} ) ;
@@ -238,7 +240,8 @@ describe('ComponentSetBuilder', () => {
238
240
const filter = new ComponentSet ( ) ;
239
241
filter . add ( { type : 'ApexClass' , fullName : 'MyClass' } ) ;
240
242
filter . add ( { type : 'CustomObject' , fullName : '*' } ) ;
241
- expect ( fromSourceArgs ) . to . have . deep . property ( 'include' , filter ) ;
243
+ expect ( fromSourceArgs ) . to . have . property ( 'include' ) ;
244
+ expect ( fromSourceArgs . include . getSourceComponents ( ) ) . to . deep . equal ( filter . getSourceComponents ( ) ) ;
242
245
expect ( compSet . size ) . to . equal ( 2 ) ;
243
246
expect ( compSet . has ( apexClassComponent ) ) . to . equal ( true ) ;
244
247
expect ( compSet . has ( customObjectComponent ) ) . to . equal ( true ) ;
@@ -265,7 +268,8 @@ describe('ComponentSetBuilder', () => {
265
268
expect ( fromSourceArgs ) . to . have . deep . property ( 'fsPaths' , [ packageDir1 , packageDir2 ] ) ;
266
269
const filter = new ComponentSet ( ) ;
267
270
filter . add ( { type : 'ApexClass' , fullName : '*' } ) ;
268
- expect ( fromSourceArgs ) . to . have . deep . property ( 'include' , filter ) ;
271
+ expect ( fromSourceArgs ) . to . have . property ( 'include' ) ;
272
+ expect ( fromSourceArgs . include . getSourceComponents ( ) ) . to . deep . equal ( filter . getSourceComponents ( ) ) ;
269
273
expect ( compSet . size ) . to . equal ( 2 ) ;
270
274
expect ( compSet . has ( apexClassComponent ) ) . to . equal ( true ) ;
271
275
expect ( compSet . has ( apexClassComponent2 ) ) . to . equal ( true ) ;
0 commit comments