feat(audio): new-leader call in practice can be turned off (1.89.10)
This commit is contained in:
1 parent
daed2ff790
commit
755844c22d
10 files changed
+30
-5
No files matched your search
@@ -399,3 +399,10 @@ test("passing beep plays for every car, even five cars inside a second (only voi
|
||||
await Promise.all(calls.map((call) => call.effectDone));
|
||||
assert.equal(played.length, 6);
|
||||
});
|
||||
|
||||
test("practice: the new-leader call is on by default and can be turned off; races are unaffected", () => {
|
||||
assert.equal(isSilencedDuringRace("new_leader", {}, { type: "open_practice" }), false);
|
||||
assert.equal(isSilencedDuringRace("new_leader", { practiceLeaderCalls: "off" }, { type: "open_practice" }), true);
|
||||
assert.equal(isSilencedDuringRace("personal_best", { practiceLeaderCalls: "off" }, { type: "open_practice" }), false, "other practice calls stay");
|
||||
assert.equal(isSilencedDuringRace("new_leader", { practiceLeaderCalls: "off" }, { type: "final" }), false, "races follow their own leader setting");
|
||||
});
|
||||
Reference in new issue
Block a user