Skip to content

Commit

Permalink
Merge pull request #21 from johnksv/fix-control-code-start-at-30
Browse files Browse the repository at this point in the history
Fix #14 Control codes begin at 30, should be 31
  • Loading branch information
perliedman authored Oct 8, 2022
2 parents 36e8df2 + 81d9725 commit 9769c02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/event.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("event", () => {
const loadedEvent = Event.load(event);

expect(loadedEvent.idGenerator.next()).toBe(1);
expect(loadedEvent.controlCodeGenerator.next()).toBe(30);
expect(loadedEvent.controlCodeGenerator.next()).toBe(31);
});

test("load event with controls", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/models/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function load(data: Event): Event {
]),
controlCodeGenerator: sequence([
...Object.keys(data.controls).map((id) => data.controls[id].code),
29,
30,
]),
};
updateAllControls(event);
Expand Down

0 comments on commit 9769c02

Please sign in to comment.