swarm ui: an unset fresh-session handle does not hold the soft handle up; docs vale fixes
This commit is contained in:
parent
b16074e76b
commit
0db9868eee
1 changed files with 22 additions and 7 deletions
|
|
@ -52,7 +52,14 @@ test("the fresh-session handle stops at the soft one and at 5", () => {
|
|||
assert.equal(clampFresh(44.6, l), 45);
|
||||
});
|
||||
|
||||
test("the soft handle stops at the fresh-session one and at 100", () => {
|
||||
test("an unset fresh-session handle does not hold the soft one up", () => {
|
||||
const l = limitsOf("", "");
|
||||
assert.equal(clampSoft(20, l), 20);
|
||||
assert.equal(clampSoft(5, l), 5);
|
||||
assert.equal(limitsOf("", "20").fresh, 20, "it follows the soft handle down");
|
||||
});
|
||||
|
||||
test("the soft handle stops at a set fresh-session one and at 100", () => {
|
||||
const l = limitsOf("30", "60");
|
||||
assert.equal(clampSoft(75, l), 75);
|
||||
assert.equal(clampSoft(10, l), 30);
|
||||
|
|
|
|||
Loading…
Reference in a new issue