File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ require('./team-test')
3939require ( './team-users-test' )
4040require ( './team-stack-role-mapping-test' )
4141require ( './managementToken-test' )
42- require ( './ungroupedVariants-test' )
4342require ( './variantGroup-test' )
43+ require ( './ungroupedVariants-test' )
4444require ( './variantsWithVariantsGroup-test' )
4545require ( './variants-entry-test' )
Original file line number Diff line number Diff line change @@ -162,6 +162,9 @@ function makeVariants (data = {}) {
162162}
163163
164164function checkVariants ( variants ) {
165+ if ( variants . variants ) {
166+ variants = variants . variants
167+ }
165168 checkSystemFields ( variants )
166169 expect ( variants . name ) . to . be . equal ( 'name' )
167170}
Original file line number Diff line number Diff line change @@ -159,6 +159,9 @@ function makeVariantGroup (data = {}) {
159159}
160160
161161function checkVariantGroup ( variantGroup ) {
162+ if ( variantGroup . variant_group ) {
163+ variantGroup = variantGroup . variant_group
164+ }
162165 checkSystemFields ( variantGroup )
163166 expect ( variantGroup . name ) . to . be . equal ( 'Test' )
164167 expect ( variantGroup . source ) . to . be . equal ( 'Personalize' )
Original file line number Diff line number Diff line change @@ -135,6 +135,9 @@ function makeVariants (data = {}) {
135135}
136136
137137function checkVariants ( variant ) {
138+ if ( variant . variants ) {
139+ variant = variant . variants
140+ }
138141 checkSystemFields ( variant )
139142 expect ( variant . name ) . to . be . equal ( 'Test' )
140143 expect ( variant . uid ) . to . be . equal ( 'UID' )
You can’t perform that action at this time.
0 commit comments