Skip to content

Commit

Permalink
fix: 変数名のケースを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
laminne committed Jul 8, 2024
1 parent 830b173 commit a70ca6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/kcms/src/match/model/runResult.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('RunResult', () => {
it('正しくインスタンスを生成できる(ゴール時)', () => {
const result = RunResult.new({
id: '999' as RunResultID,
teamID: '100' as EntryID,
teamId: '100' as EntryID,
points: 10,
goalTimeSeconds: 100,
finishState: 'FINISHED',
Expand All @@ -23,7 +23,7 @@ describe('RunResult', () => {
it('正しくインスタンスを生成できる(フィニッシュ時)', () => {
const result = RunResult.new({
id: '999' as RunResultID,
teamID: '100' as EntryID,
teamId: '100' as EntryID,
points: 10,
goalTimeSeconds: 100,
finishState: 'RETIRED',
Expand Down
10 changes: 5 additions & 5 deletions packages/kcms/src/match/model/runResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@ export type RunResultID = SnowflakeID<RunResult>;
export type FinishState = 'FINISHED' | 'RETIRED';
export interface CreateRunResultArgs {
id: RunResultID;
teamID: EntryID;
teamId: EntryID;
points: number;
goalTimeSeconds: number;
finishState: FinishState;
}

export class RunResult {
private readonly id: RunResultID;
private readonly teamID: EntryID;
private readonly teamId: EntryID;
private readonly points: number;
private readonly goalTimeSeconds: number;
private readonly finishState: FinishState;

private constructor(args: {
id: RunResultID;
teamID: EntryID;
teamId: EntryID;
points: number;
goalTimeSeconds: number;
finishState: FinishState;
}) {
this.id = args.id;
this.teamID = args.teamID;
this.teamId = args.teamId;
this.points = args.points;
this.goalTimeSeconds = args.goalTimeSeconds;
this.finishState = args.finishState;
Expand All @@ -50,7 +50,7 @@ export class RunResult {
}

public getTeamId(): EntryID {
return this.teamID;
return this.teamId;
}

public getPoints(): number {
Expand Down

0 comments on commit a70ca6c

Please sign in to comment.