Skip to content

Commit

Permalink
chore: upgrade prettierrc to 3.2.5 (CXSPA-7333) (#18986)
Browse files Browse the repository at this point in the history
Co-authored-by: Hakwoo Kim <[email protected]>
  • Loading branch information
kimhw0630 and hakwookim authored Jun 19, 2024
1 parent 2a25815 commit f40b7ab
Show file tree
Hide file tree
Showing 398 changed files with 6,771 additions and 7,576 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"singleQuote": true
"singleQuote": true,
"trailingComma": "es5"
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,13 @@ <h2 class="title modal-title">
<div class="modal-footer">
<button
type="submit"
class="
btn
cx-asm-create-customer-btn cx-asm-create-customer-btn-create
"
class="btn cx-asm-create-customer-btn cx-asm-create-customer-btn-create"
>
{{ 'asm.createCustomerForm.createAccount' | cxTranslate }}
</button>
<button
type="button"
class="
btn
cx-asm-create-customer-btn cx-asm-create-customer-btn-cancel
"
class="btn cx-asm-create-customer-btn cx-asm-create-customer-btn-cancel"
(click)="closeModal('Cancel click')"
>
{{ 'asm.createCustomerForm.cancel' | cxTranslate }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,29 +111,27 @@ describe('AsmCreateCustomerFormComponent', () => {
let launchDialogService: LaunchDialogService;
let asmCreateCustomerFacade: AsmCreateCustomerFacade;

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [
AsmCreateCustomerFormComponent,
MockCxIconComponent,
MockKeyboadFocusDirective,
],
providers: [
{ provide: LaunchDialogService, useClass: MockLaunchDialogService },
{
provide: AsmCreateCustomerFacade,
useClass: MockAsmCreateCustomerFacade,
},
],
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
}).compileComponents();

launchDialogService = TestBed.inject(LaunchDialogService);
asmCreateCustomerFacade = TestBed.inject(AsmCreateCustomerFacade);
})
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [
AsmCreateCustomerFormComponent,
MockCxIconComponent,
MockKeyboadFocusDirective,
],
providers: [
{ provide: LaunchDialogService, useClass: MockLaunchDialogService },
{
provide: AsmCreateCustomerFacade,
useClass: MockAsmCreateCustomerFacade,
},
],
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
}).compileComponents();

launchDialogService = TestBed.inject(LaunchDialogService);
asmCreateCustomerFacade = TestBed.inject(AsmCreateCustomerFacade);
}));

beforeEach(() => {
fixture = TestBed.createComponent(AsmCreateCustomerFormComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,32 +179,30 @@ describe('AsmMainUiComponent', () => {
let asmEnablerService: AsmEnablerService;
const testCustomerId: string = '[email protected]';

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [
AsmMainUiComponent,
MockAsmToggleUiComponent,
MockCSAgentLoginFormComponent,
MockCustomerSelectionComponent,
MockAsmSessionTimerComponent,
MockCustomerEmulationComponent,
MockCxIconComponent,
],
providers: [
{ provide: AuthService, useClass: MockAuthService },
{ provide: CsAgentAuthService, useClass: MockCsAgentAuthService },
{ provide: UserAccountFacade, useClass: MockUserAccountFacade },
{ provide: GlobalMessageService, useClass: MockGlobalMessageService },
{ provide: RoutingService, useClass: MockRoutingService },
{ provide: AsmComponentService, useClass: MockAsmComponentService },
{ provide: AsmService, useClass: MockAsmService },
{ provide: LaunchDialogService, useClass: MockLaunchDialogService },
],
}).compileComponents();
})
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [
AsmMainUiComponent,
MockAsmToggleUiComponent,
MockCSAgentLoginFormComponent,
MockCustomerSelectionComponent,
MockAsmSessionTimerComponent,
MockCustomerEmulationComponent,
MockCxIconComponent,
],
providers: [
{ provide: AuthService, useClass: MockAuthService },
{ provide: CsAgentAuthService, useClass: MockCsAgentAuthService },
{ provide: UserAccountFacade, useClass: MockUserAccountFacade },
{ provide: GlobalMessageService, useClass: MockGlobalMessageService },
{ provide: RoutingService, useClass: MockRoutingService },
{ provide: AsmComponentService, useClass: MockAsmComponentService },
{ provide: AsmService, useClass: MockAsmService },
{ provide: LaunchDialogService, useClass: MockLaunchDialogService },
],
}).compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(AsmMainUiComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,22 @@ describe('AsmSessionTimerComponent', () => {
let routingService: RoutingService;
let userIdService: UserIdService;

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [AsmSessionTimerComponent, MockFormatTimerPipe],
providers: [
{
provide: ChangeDetectorRef,
useValue: { markForCheck: createSpy('markForCheck') },
},
{ provide: AsmConfig, useValue: MockAsmConfig },
{ provide: AsmComponentService, useClass: MockAsmComponentService },
{ provide: RoutingService, useClass: MockRoutingService },
{ provide: UserIdService, useClass: MockUserIdService },
],
}).compileComponents();
})
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [AsmSessionTimerComponent, MockFormatTimerPipe],
providers: [
{
provide: ChangeDetectorRef,
useValue: { markForCheck: createSpy('markForCheck') },
},
{ provide: AsmConfig, useValue: MockAsmConfig },
{ provide: AsmComponentService, useClass: MockAsmComponentService },
{ provide: RoutingService, useClass: MockRoutingService },
{ provide: UserIdService, useClass: MockUserIdService },
],
}).compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(AsmSessionTimerComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ describe('AsmToggleuUiComponent', () => {
let asmService: AsmService;
let el: DebugElement;

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [AsmToggleUiComponent],
providers: [{ provide: AsmService, useClass: MockAsmService }],
}).compileComponents();
})
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [AsmToggleUiComponent],
providers: [{ provide: AsmService, useClass: MockAsmService }],
}).compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(AsmToggleUiComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,21 @@ describe('CSAgentLoginFormComponent', () => {
const validUserId = 'asagent';
const validPassword = 'testPass123!';

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
I18nTestingModule,
FormErrorsModule,
PasswordVisibilityToggleModule,
],
declarations: [
CSAgentLoginFormComponent,
DotSpinnerComponent,
MockFeatureDirective,
],
}).compileComponents();
})
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
I18nTestingModule,
FormErrorsModule,
PasswordVisibilityToggleModule,
],
declarations: [
CSAgentLoginFormComponent,
DotSpinnerComponent,
MockFeatureDirective,
],
}).compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(CSAgentLoginFormComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,33 +59,31 @@ describe('CustomerEmulationComponent', () => {
let el: DebugElement;
let featureModulesService: FeatureModulesService;

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [
CustomerEmulationComponent,
MockFeatureLevelDirective,
MockAsmBindCartComponent,
],
providers: [
{
provide: FeatureModulesService,
useClass: mockFeatureModulesService,
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [
CustomerEmulationComponent,
MockFeatureLevelDirective,
MockAsmBindCartComponent,
],
providers: [
{
provide: FeatureModulesService,
useClass: mockFeatureModulesService,
},
{ provide: UserAccountFacade, useClass: MockUserAccountFacade },
{ provide: AsmComponentService, useClass: MockAsmComponentService },
{ provide: LaunchDialogService, useClass: MockLaunchDialogService },
{
provide: FeaturesConfig,
useValue: {
features: { level: '6.3' },
},
{ provide: UserAccountFacade, useClass: MockUserAccountFacade },
{ provide: AsmComponentService, useClass: MockAsmComponentService },
{ provide: LaunchDialogService, useClass: MockLaunchDialogService },
{
provide: FeaturesConfig,
useValue: {
features: { level: '6.3' },
},
},
],
}).compileComponents();
})
);
},
],
}).compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(CustomerEmulationComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,43 +215,41 @@ describe('CustomerListComponent', () => {
let config: AsmConfig;
let asmCustomerListFacade: AsmCustomerListFacade;

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [
CustomerListComponent,
MockCxIconComponent,
MockKeyboadFocusDirective,
],
providers: [
{ provide: LaunchDialogService, useClass: MockLaunchDialogService },
{
provide: BreakpointService,
useClass: MockBreakpointService,
},
{ provide: AsmConfig, useClass: MockAsmConfig },
{
provide: AsmCustomerListFacade,
useClass: MockAsmCustomerListFacade,
},
],
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
}).compileComponents();
launchDialogService = TestBed.inject(LaunchDialogService);
config = TestBed.inject(AsmConfig);
breakpointService = TestBed.inject(BreakpointService);
asmCustomerListFacade = TestBed.inject(AsmCustomerListFacade);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [I18nTestingModule],
declarations: [
CustomerListComponent,
MockCxIconComponent,
MockKeyboadFocusDirective,
],
providers: [
{ provide: LaunchDialogService, useClass: MockLaunchDialogService },
{
provide: BreakpointService,
useClass: MockBreakpointService,
},
{ provide: AsmConfig, useClass: MockAsmConfig },
{
provide: AsmCustomerListFacade,
useClass: MockAsmCustomerListFacade,
},
],
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
}).compileComponents();
launchDialogService = TestBed.inject(LaunchDialogService);
config = TestBed.inject(AsmConfig);
breakpointService = TestBed.inject(BreakpointService);
asmCustomerListFacade = TestBed.inject(AsmCustomerListFacade);

spyOn(
asmCustomerListFacade,
'getCustomerListCustomersSearchResultsLoading'
).and.returnValue(of(true));
spyOnProperty(breakpointService, 'breakpoint$').and.returnValue(
new BehaviorSubject(BREAKPOINT.md)
);
})
);
spyOn(
asmCustomerListFacade,
'getCustomerListCustomersSearchResultsLoading'
).and.returnValue(of(true));
spyOnProperty(breakpointService, 'breakpoint$').and.returnValue(
new BehaviorSubject(BREAKPOINT.md)
);
}));

beforeEach(() => {
fixture = TestBed.createComponent(CustomerListComponent);
Expand Down
Loading

0 comments on commit f40b7ab

Please sign in to comment.