Skip to content

Commit

Permalink
fix unit-lable spec and e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel7373 authored and kcinay055679 committed Nov 8, 2024
1 parent 847199c commit ad56014
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h4 class="okr-form-label okr-form-col">Key Result</h4>
<p class="okr-form-label okr-form-col confidence-label">
Confidence um Target Zone
<span *ngIf="keyResult.keyResultType === 'metric' && getKeyResultMetric() as kr">
({{ calculateTarget(kr) | unitValueTransformation }} {{ kr.unit | unitLabelTransformation }})
({{ calculateTarget(kr) | unitValueTransformation }}{{ kr.unit | unitLabelTransformation }})
</span>
zu erreichen:
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ describe('UnitLabelTransformationPipe', () => {

it('Format FTE label', () => {
const pipe = new UnitLabelTransformationPipe();
expect(pipe.transform(Unit.FTE)).toBe(Unit.FTE);
expect(pipe.transform(Unit.FTE)).toBe(' ' + Unit.FTE);
});

it('Format CHF label', () => {
const pipe = new UnitLabelTransformationPipe();
expect(pipe.transform(Unit.CHF)).toBe(Unit.CHF);
expect(pipe.transform(Unit.CHF)).toBe(' ' + Unit.CHF);
});

it('Format EUR label', () => {
const pipe = new UnitLabelTransformationPipe();
expect(pipe.transform(Unit.EUR)).toBe(Unit.EUR);
expect(pipe.transform(Unit.EUR)).toBe(' ' + Unit.EUR);
});

it('Format Number label', () => {
Expand Down

0 comments on commit ad56014

Please sign in to comment.