mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-21 20:55:12 -04:00
fix: format
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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);");
|
||||
|
||||
Reference in New Issue
Block a user