From 7f12ce9b458e0668318296eadda32cd825a38364 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 4 Jul 2023 18:47:44 +0200 Subject: [PATCH] fix: format --- packages/react/src/hooks/useHighlighting.mjs | 2 +- packages/transpiler/test/transpiler.test.mjs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react/src/hooks/useHighlighting.mjs b/packages/react/src/hooks/useHighlighting.mjs index e0cf3b79..56136369 100644 --- a/packages/react/src/hooks/useHighlighting.mjs +++ b/packages/react/src/hooks/useHighlighting.mjs @@ -22,7 +22,7 @@ function useHighlighting({ view, pattern, active, getTime }) { highlights.current = highlights.current.concat(haps); // add potential new onsets highlightMiniLocations(view, begin, highlights.current); } catch (err) { - highlightMiniLocations(view, 0, []) + highlightMiniLocations(view, 0, []); } frame = requestAnimationFrame(updateHighlights); }); diff --git a/packages/transpiler/test/transpiler.test.mjs b/packages/transpiler/test/transpiler.test.mjs index c65b014a..1d14986d 100644 --- a/packages/transpiler/test/transpiler.test.mjs +++ b/packages/transpiler/test/transpiler.test.mjs @@ -12,9 +12,7 @@ const simple = { wrapAsync: false, addReturn: false, simpleLocs: true }; describe('transpiler', () => { it('wraps double quote string with mini and adds location', () => { expect(transpiler('"c3"', simple).output).toEqual("m('c3', 0);"); - expect(transpiler('stack("c3","bd sd")', simple).output).toEqual( - "stack(m('c3', 6), m('bd sd', 11));", - ); + expect(transpiler('stack("c3","bd sd")', simple).output).toEqual("stack(m('c3', 6), m('bd sd', 11));"); }); it('wraps backtick string with mini and adds location', () => { expect(transpiler('`c3`', simple).output).toEqual("m('c3', 0);");