Skip to content

Commit

Permalink
Merge pull request #1293 from RyoSusami/master
Browse files Browse the repository at this point in the history
Update formatter/tests.js to match addModifier() parameter order.
  • Loading branch information
ronyeh authored Jan 12, 2022
2 parents b404958 + b06ab94 commit e20bfc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/formatter/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ function subgroup(el, iterations, params) {
f.StaveConnector({ top_stave: stave1, bottom_stave: stave2, type: 'singleRight' });

function addAccidental(note, acc) {
return note.addModifier(f.Accidental({ type: acc }), 0);
return note.addModifier(0, f.Accidental({ type: acc }));
}
function addSubGroup(note, subNotes) {
return note.addModifier(f.NoteSubGroup({ notes: subNotes }), 0);
return note.addModifier(0, f.NoteSubGroup({ notes: subNotes }));
}

f.Beam({ notes: notes3.slice(1, 4) });
Expand Down

0 comments on commit e20bfc1

Please sign in to comment.