Skip to content

Commit

Permalink
Back merge (#199)
Browse files Browse the repository at this point in the history
* Updated node version 22 support and fixed testcases (#195) (#196)

* Updated testcases (#198)
  • Loading branch information
sunil-lakshman authored Oct 1, 2024
1 parent f4c759f commit 164f2fb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ require('./team-test')
require('./team-users-test')
require('./team-stack-role-mapping-test')
require('./managementToken-test')
require('./ungroupedVariants-test')
require('./variantGroup-test')
require('./ungroupedVariants-test')
require('./variantsWithVariantsGroup-test')
require('./variants-entry-test')
3 changes: 3 additions & 0 deletions test/unit/ungroupedVariants-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ function makeVariants (data = {}) {
}

function checkVariants (variants) {
if(variants.variants){
variants = variants.variants
}
checkSystemFields(variants)
expect(variants.name).to.be.equal('name')
}
3 changes: 3 additions & 0 deletions test/unit/variantGroup-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ function makeVariantGroup (data = {}) {
}

function checkVariantGroup (variantGroup) {
if(variantGroup.variant_group){
variantGroup = variantGroup.variant_group
}
checkSystemFields(variantGroup)
expect(variantGroup.name).to.be.equal('Test')
expect(variantGroup.source).to.be.equal('Personalize')
Expand Down
3 changes: 3 additions & 0 deletions test/unit/variantsWithVariantsGroup-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ function makeVariants (data = {}) {
}

function checkVariants (variant) {
if(variant.variants){
variant = variant.variants
}
checkSystemFields(variant)
expect(variant.name).to.be.equal('Test')
expect(variant.uid).to.be.equal('UID')
Expand Down

0 comments on commit 164f2fb

Please sign in to comment.