Skip to content

Commit

Permalink
renaming priority
Browse files Browse the repository at this point in the history
  • Loading branch information
dmekala-va committed Jul 9, 2024
1 parent 764cbee commit 4eb1c31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/BannerService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("BannerServiceRedis", () => {
expect(retrievedBanner!.id).toEqual(banner.id);
expect(retrievedBanner!.message).toEqual(banner.message);
expect(retrievedBanner!.enabled).toEqual(banner.enabled);
expect(retrievedBanner!.priority).toEqual(banner.priority);
expect(retrievedBanner!.alertStyle).toEqual(banner.alertStyle);
expect(retrievedBanner!.order).toEqual(banner.order);
expect(retrievedBanner!.startTime).toEqual(banner.startTime);
expect(retrievedBanner!.endTime).toEqual(banner.endTime);
Expand All @@ -51,7 +51,7 @@ describe("BannerServiceRedis", () => {
expect(retrievedBanner!.id).toEqual(banner.id);
expect(retrievedBanner!.message).toEqual(banner.message);
expect(retrievedBanner!.enabled).toEqual(banner.enabled);
expect(retrievedBanner!.priority).toEqual(banner.priority);
expect(retrievedBanner!.alertStyle).toEqual(banner.alertStyle);
expect(retrievedBanner!.order).toEqual(banner.order);
expect(retrievedBanner!.startTime).toEqual(banner.startTime);
expect(retrievedBanner!.endTime).toEqual(banner.endTime);
Expand Down Expand Up @@ -117,7 +117,7 @@ describe("BannerServiceRedis", () => {
expect(retrievedBanner!.id).toEqual(updatedBanner.id);
expect(retrievedBanner!.message).toEqual(updatedBanner.message);
expect(retrievedBanner!.enabled).toEqual(updatedBanner.enabled);
expect(retrievedBanner!.priority).toEqual(updatedBanner.priority);
expect(retrievedBanner!.alertStyle).toEqual(updatedBanner.alertStyle);
expect(retrievedBanner!.order).toEqual(updatedBanner.order);

expect(retrievedBanner!.startTime).toEqual(updatedBanner.startTime);
Expand Down
6 changes: 3 additions & 3 deletions src/banner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default class Banner {
endTime: number;
message: string;
enabled: boolean;
priority: number;
alertStyle: number;
order: number;

constructor(
Expand All @@ -21,12 +21,12 @@ export default class Banner {
this.endTime = endTime;
this.message = message;
this.enabled = enabled;
this.priority = priority;
this.alertStyle = priority;
this.order = order;
}

setPriority(priority: number): void {
this.priority = priority;
this.alertStyle = priority;
}

setOrder(order: number): void {
Expand Down

0 comments on commit 4eb1c31

Please sign in to comment.