@unleash/client-specification
Advanced tools
Comparing version 4.3.3 to 4.4.0
{ | ||
"name": "@unleash/client-specification", | ||
"version": "4.3.3", | ||
"version": "4.4.0", | ||
"description": "A collection of test specifications to guide client implementations in various languages", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -208,2 +208,23 @@ { | ||
] | ||
}, | ||
{ | ||
"name": "Feature.Variants.H", | ||
"description": "variant with numeric payload", | ||
"enabled": true, | ||
"strategies": [ | ||
{ | ||
"name": "default", | ||
"parameters": {} | ||
} | ||
], | ||
"variants": [ | ||
{ | ||
"name": "variant1", | ||
"weight": 1, | ||
"payload": { | ||
"type": "number", | ||
"value": "1.2" | ||
} | ||
} | ||
] | ||
} | ||
@@ -434,4 +455,19 @@ ] | ||
} | ||
}, | ||
{ | ||
"description": "Feature.Variants.H should return variant1 with numeric type payload", | ||
"context": { | ||
"userId": "0" | ||
}, | ||
"toggleName": "Feature.Variants.H", | ||
"expectedResult": { | ||
"name": "variant1", | ||
"payload": { | ||
"type": "number", | ||
"value": "1.2" | ||
}, | ||
"enabled": true | ||
} | ||
} | ||
] | ||
} |
@@ -162,4 +162,38 @@ { | ||
] | ||
}, | ||
{ | ||
"name": "Feature.strategy.numeric.variants", | ||
"description": "Strategy variants with numeric payload", | ||
"enabled": true, | ||
"strategies": [ | ||
{ | ||
"name": "flexibleRollout", | ||
"parameters": { | ||
"rollout": "100", | ||
"stickiness": "default", | ||
"groupId": "a" | ||
}, | ||
"variants": [ | ||
{ | ||
"name": "variantNameA", | ||
"weight": 1, | ||
"payload": { | ||
"type": "number", | ||
"value": "1.2" | ||
} | ||
}, | ||
{ | ||
"name": "variantNameB", | ||
"weight": 1, | ||
"payload": { | ||
"type": "number", | ||
"value": "1" | ||
} | ||
} | ||
], | ||
"constraints": [] | ||
} | ||
], | ||
"variants": [] | ||
} | ||
] | ||
@@ -260,4 +294,19 @@ }, | ||
} | ||
}, | ||
{ | ||
"description": "Feature.strategy.numeric.variants should choose second variant", | ||
"context": { | ||
"userId": "0" | ||
}, | ||
"toggleName": "Feature.strategy.numeric.variants", | ||
"expectedResult": { | ||
"name": "variantNameB", | ||
"payload": { | ||
"type": "number", | ||
"value": "1" | ||
}, | ||
"enabled": true | ||
} | ||
} | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136147
3839