Skip to content

Commit

Permalink
apply formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Dec 24, 2024
1 parent dbfc0f6 commit 5083068
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ void setup() {
.withTitle("Keyresult Metric")
.withObjective(objective)


.withOwner(user)


.withCreatedBy(user)
.build();
ordinalKeyResult = KeyResultOrdinal.Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,7 @@ void shouldThrowExceptionOnValidateOnUpdateWhenKeyResultIsMissing() {
@Test
void shouldThrowExceptionOnValidateOnUpdateWhenAttrsAreMissing() {
// arrange
Action actionInvalid = Action.Builder
.builder()
.withId(11L)
.isChecked(true)
.withKeyResult(keyResult).build();
Action actionInvalid = Action.Builder.builder().withId(11L).isChecked(true).withKeyResult(keyResult).build();
when(actionPersistenceService.findById(anyLong())).thenReturn(actionInvalid);

// act + assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,7 @@ void validateOnCreateShouldThrowExceptionWhenLastnameIsInvalid(String name, List
@ParameterizedTest(name = "should throw exception on validateCreate() when model has invalid email '{0}'")
@MethodSource("emailValidationArguments")
void validateOnCreateShouldThrowExceptionWhenEmailIsInvalid(String email, List<ErrorDto> errors) {
User user = User.Builder
.builder()
.withEmail(email)
.withFirstName("firstname")
.withLastName("lastname").build();
User user = User.Builder.builder().withEmail(email).withFirstName("firstname").withLastName("lastname").build();

OkrResponseStatusException exception = assertThrows(OkrResponseStatusException.class,
() -> validator.validateOnCreate(user));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

import static org.junit.jupiter.api.Assertions.*;

import java.time.LocalDate;
import java.util.stream.Stream;
import static org.junit.jupiter.api.Assertions.*;

import java.time.LocalDate;
import java.util.stream.Stream;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { CheckInOrdinalMin } from '../../shared/types/model/CheckInOrdinalMin';

@Component({
selector: 'app-check-in-history-dialog',
templateUrl: './check-in-history-dialog.component.html',
templateUrl: './check-in-history-dialog.component.html'
})
export class CheckInHistoryDialogComponent implements OnInit {
keyResult!: KeyResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class KeyResultTypeComponent implements OnInit {
@Input() keyResultForm!: FormGroup;

@Input() keyResult!: KeyResult | null;

@Output() formValidityEmitter = new EventEmitter<boolean>();

isMetric = true;
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/style/custom_bootstrap.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@import '_variables';
$theme-colors: (
"pz-dark-blue": $pz-dark-blue,
"eggshell": $eggshell,
"display-element": $display-element,
"key-result-attribute": $key-result-attribute-bg,
"error": $error,
'pz-dark-blue': $pz-dark-blue,
'eggshell': $eggshell,
'display-element': $display-element,
'key-result-attribute': $key-result-attribute-bg,
'error': $error,
);
$enable-negative-margins: true;
@import 'bootstrap';
4 changes: 2 additions & 2 deletions frontend/src/style/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ mat-form-field.quarter-filter .mat-mdc-text-field-wrapper {
}

.sub-title-key-result {
font-family: Roboto, "sans-serif";
font-variation-settings: "wght" 400;
font-family: Roboto, 'sans-serif';
font-variation-settings: 'wght' 400;
font-size: 0.9rem !important;
}

Expand Down

0 comments on commit 5083068

Please sign in to comment.