Skip to content

Commit

Permalink
Control codes should start at 31
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Aug 22, 2022
1 parent b7fd9e6 commit 2fb5dda
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 @@ -37,7 +37,7 @@ describe("event", () => {
const loadedEvent = Event.load(event);

expect(loadedEvent.idGenerator.next()).toBe(3);
expect(loadedEvent.controlCodeGenerator.next()).toBe(31);
expect(loadedEvent.controlCodeGenerator.next()).toBe(32);
});

test("Modifying a control's code updates the code generator", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/models/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function create(name: string): Event {
mapScale: 15000,
mapFilename: "",
courses: [],
controlCodeGenerator: sequence(30),
controlCodeGenerator: sequence(31),
idGenerator: sequence(1),
controls: {},
specialObjects: [],
Expand Down

1 comment on commit 2fb5dda

@vercel
Copy link

@vercel vercel bot commented on 2fb5dda Aug 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

o-scout – ./

o-scout-git-master-liedman.vercel.app
o-scout.vercel.app
o-scout-liedman.vercel.app

Please sign in to comment.