feat(h5): update skin scoring, age display and capture countdown
This commit is contained in:
@@ -54,7 +54,7 @@ for (const realAge of [24, 40, 60, undefined]) {
|
||||
assert.equal(vm.recommendation.skinAge, 24);
|
||||
assert(Math.abs(vm.recommendation.scores.firm - 7.69) < 1e-12);
|
||||
assert.equal(UI.build(vm, raw).product.tier, 1);
|
||||
assert.equal(vm.skinAgeDisplay, 24); // Display and recommendation both use raw skin age.
|
||||
assert.equal(vm.skinAgeDisplay, realAge == null ? 24 : Math.max(realAge - 5, Math.min(realAge + 5, 24))); // Display clamp does not change raw-age recommendation.
|
||||
count++;
|
||||
}
|
||||
delete raw.skin_age;
|
||||
|
||||
Reference in New Issue
Block a user