Skip to content

Commit

Permalink
Merge GT-1758-support-spacers into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-branch-merger[bot] authored Oct 25, 2023
2 parents b5a9207 + 8430a57 commit f52b76f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/_tests/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export const mockSpacer = (height = 100): Spacer => {
return {
height,
mode: {
name: 'AUTO',
name: 'FIXED',
ordinal: 0
},
...standardTypeValues()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
<!-- Content Spacer Goes Here -->
<div class="spacer" [ngStyle]="{ 'height.px': height }"></div>
<div
class="spacer"
*ngIf="mode !== 'AUTO'"
[ngStyle]="{ 'height.px': height }"
></div>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ describe('ContentSpacerComponent', () => {
item: new SimpleChange(null, mockSpacer(200), true)
});
expect(component.height).toEqual(200);
expect(component.mode).toBe('AUTO');
expect(component.mode).toBe('FIXED');
});
});

0 comments on commit f52b76f

Please sign in to comment.