Minor text cleanup in comments, configs, and tests

This commit is contained in:
Fabricio Giglio
2026-05-10 23:53:40 +02:00
parent c6a0c7f676
commit 3659430da8
7 changed files with 30 additions and 30 deletions
@@ -94,7 +94,7 @@ describe("AccuracyTracker", () => {
bus.emit("note:on", note);
bus.emit("input:note:on", { midi: 60, velocity: 80 }); // correct hit
const countBefore = updates.length;
bus.emit("note:off", note); // already hit — should not emit again
bus.emit("note:off", note); // already hit - should not emit again
// No new accuracy:update should have been emitted for the note:off
expect(updates.length).toBe(countBefore);
@@ -247,7 +247,7 @@ describe("AccuracyTracker", () => {
bus.emit("transport:seek", { seconds: 5 }); // clears pending
const countBefore = updates.length;
bus.emit("note:off", note); // pending was cleared — should be a no-op
bus.emit("note:off", note); // pending was cleared - should be a no-op
// No new accuracy:update should have fired
expect(updates.length).toBe(countBefore);
+1 -1
View File
@@ -116,7 +116,7 @@ describe("MidiClock", () => {
mockTransport.seconds = 2;
expect(clock.currentSeconds).toBe(5);
// Change multiplier — currentSeconds must remain 5
// Change multiplier - currentSeconds must remain 5
clock.tempoMultiplier = 0.5;
expect(clock.currentSeconds).toBeCloseTo(5);
});
+1 -1
View File
@@ -36,7 +36,7 @@ describe("lighten", () => {
});
it("handles zero channel values", () => {
// Red only — green and blue stay 0
// Red only - green and blue stay 0
// Math.round(255 * 0.5) = Math.round(127.5) = 128 = 0x80
expect(lighten(0xff0000, 0.5)).toBe(0x800000);
});