fix: format

This commit is contained in:
Felix Roos 2023-07-04 18:47:44 +02:00
parent 9e1b9f7f5c
commit 7f12ce9b45
2 changed files with 2 additions and 4 deletions

View File

@ -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);
});

View File

@ -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);");