Skip to content

Commit

Permalink
Merge branch 'staging' into 10525-story
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzjone-flexion authored Dec 4, 2024
2 parents afd1ce7 + 0b880c7 commit bd1eea8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shared/src/business/entities/cases/PublicDocketEntry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { PublicDocketEntry } from './PublicDocketEntry';
describe('PublicDocketEntry', () => {
it('should only have expected fields', () => {
const entity = new PublicDocketEntry({
action: 'some action',
additionalInfo: 'something',
additionalInfo2: 'something else',
anotherThing: false,
Expand Down Expand Up @@ -44,6 +45,7 @@ describe('PublicDocketEntry', () => {
});

expect(entity.toRawObject()).toEqual({
action: 'some action',
additionalInfo: 'something',
additionalInfo2: 'something else',
attachments: true,
Expand Down
2 changes: 2 additions & 0 deletions shared/src/business/entities/cases/PublicDocketEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { JoiValidationEntity } from '@shared/business/entities/JoiValidationEnti
import joi from 'joi';

export class PublicDocketEntry extends JoiValidationEntity {
public action?: string;
public additionalInfo?: string;
public additionalInfo2?: string;
public attachments?: boolean;
Expand Down Expand Up @@ -45,6 +46,7 @@ export class PublicDocketEntry extends JoiValidationEntity {

constructor(rawProps) {
super('PublicDocketEntry');
this.action = rawProps.action;
this.additionalInfo = rawProps.additionalInfo;
this.additionalInfo2 = rawProps.additionalInfo2;
this.attachments = rawProps.attachments;
Expand Down

0 comments on commit bd1eea8

Please sign in to comment.