Skip to content

Commit

Permalink
fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmekala-va committed Jul 3, 2024
1 parent 8609b7a commit 08c23f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/BannerService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ describe("BannerServiceRedis", () => {
const banners = await bannerService.getBanners();

expect(banners.length).toBe(2);

});

it("should update banner", async () => {
Expand Down Expand Up @@ -119,7 +118,9 @@ describe("BannerServiceRedis", () => {
expect(retrievedBanner!.priority).toEqual(updatedBanner.priority);
expect(retrievedBanner!.order).toEqual(updatedBanner.order);

expect(new Date(retrievedBanner!.startTime)).toEqual(updatedBanner.startTime);
expect(new Date(retrievedBanner!.startTime)).toEqual(
updatedBanner.startTime
);
expect(new Date(retrievedBanner!.endTime)).toEqual(updatedBanner.endTime);
});
it("should delete banner", async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class TestCache implements ICache {
keys(pattern: string): Promise<string[]> {
return new Promise<string[]>((resolve) => {
const allKeys = this.theCache.keys();
if(!pattern) {
if (!pattern) {
resolve(allKeys);
return;
}
Expand Down

0 comments on commit 08c23f1

Please sign in to comment.