Skip to content

Commit

Permalink
LCSD-7382: Adding the Unit Test and Styling for the Hours of Sale Rev…
Browse files Browse the repository at this point in the history
…erted Changes (#4316)

* added hours of sale

* revert unit tests and styling
  • Loading branch information
vijaivir authored Nov 21, 2024
1 parent 6d22178 commit e6dd1a6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,26 @@
.normal-mode {
display: none;
}

.store-hours {
width: 100%;
border-collapse: separate;
border-spacing: 2px;

th {
text-align: center;
}

td,
th {
padding: 5px;
background-color: #E1E8F2;
}

th.lead {
background-color: transparent;
}
}

td.primary {
padding: 10px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,27 @@ describe("ApplicationComponent",
expect(elem).toBeFalsy();
});

it("should show hours of sale if enabled",
() => {
applicationService.getApplicationById = () => of({
applicationType: {
'showHoursOfSale': true,
contentTypes: []
} as any
} as Application);
fixture = TestBed.createComponent(ApplicationComponent);
component = fixture.debugElement.componentInstance;
fixture.detectChanges();
const elem = fixture.debugElement.query(By.css(".ngtest-hours-of-sale")).nativeElement;
expect(elem).not.toBeFalsy();
});

it("should hide hours of sale if disabled",
() => {
const elem = fixture.debugElement.query(By.css(".ngtest-hours-of-sale"));
expect(elem).toBeFalsy();
});

it("should be invalid if no supporting documents are uploaded",
() => {
applicationService.getApplicationById = () => of({
Expand Down

0 comments on commit e6dd1a6

Please sign in to comment.