Skip to content

Commit

Permalink
#26399 include in 23.10.24 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Nov 4, 2024
1 parent 125c179 commit b05398b
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
CoreWebService,
DotcmsConfigService,
LoggerService,
LoginService,
StringUtils,
UserModel
} from '@dotcms/dotcms-js';
Expand Down Expand Up @@ -49,6 +50,10 @@ describe('DotContainerListResolverService', () => {
offset: -21600000
})
}
},
{
provide: LoginService,
useValue: { currentUserLanguageId: 'en-US' }
}
]
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ import { TooltipModule } from 'primeng/tooltip';
import { of } from 'rxjs/internal/observable/of';

import { DotMessageService } from '@dotcms/data-access';
import { CoreWebService, CoreWebServiceMock, DotcmsConfigService } from '@dotcms/dotcms-js';
import {
CoreWebService,
CoreWebServiceMock,
DotcmsConfigService,
LoginService
} from '@dotcms/dotcms-js';
import { DotAutofocusDirective, DotMessagePipe, DotRelativeDatePipe } from '@dotcms/ui';
import {
DotcmsConfigServiceMock,
Expand Down Expand Up @@ -155,7 +160,11 @@ describe('DotPagesListingPanelComponent', () => {
{ provide: DotcmsConfigService, useClass: DotcmsConfigServiceMock },
{ provide: CoreWebService, useClass: CoreWebServiceMock },
{ provide: DotPageStore, useClass: storeMock },
{ provide: DotMessageService, useValue: messageServiceMock }
{ provide: DotMessageService, useValue: messageServiceMock },
{
provide: LoginService,
useValue: { currentUserLanguageId: 'en-US' }
}
]
}).compileComponents();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
CoreWebService,
DotcmsConfigService,
LoggerService,
LoginService,
StringUtils,
UserModel
} from '@dotcms/dotcms-js';
Expand Down Expand Up @@ -49,6 +50,10 @@ describe('DotTemplateListResolverService', () => {
offset: -21600000
})
}
},
{
provide: LoginService,
useValue: { currentUserLanguageId: 'en-US' }
}
]
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,17 @@ describe('DotTemplateListComponent', () => {
DotHttpErrorManagerService,
DotAlertConfirmService,
ConfirmationService,
LoginService,
DotcmsEventsService,
DotEventsSocket,
DotcmsConfigService,
DotMessageDisplayService,
DialogService,
DotSiteBrowserService,
{ provide: DotFormatDateService, useClass: DotFormatDateServiceMock }
{ provide: DotFormatDateService, useClass: DotFormatDateServiceMock },
{
provide: LoginService,
useValue: { currentUserLanguageId: 'en-US' }
}
],
imports: [
DotListingDataTableModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { TableModule } from 'primeng/table';
import { DotContentComparePreviewFieldComponent } from '@components/dot-content-compare/components/fields/dot-content-compare-preview-field/dot-content-compare-preview-field.component';
import { DotContentCompareTableData } from '@components/dot-content-compare/store/dot-content-compare.store';
import { DotMessageService } from '@dotcms/data-access';
import { DotcmsConfigService } from '@dotcms/dotcms-js';
import { DotcmsConfigService, LoginService } from '@dotcms/dotcms-js';
import { DotFormatDateService, DotMessagePipe, DotRelativeDatePipe } from '@dotcms/ui';
import { MockDotMessageService } from '@dotcms/utils-testing';
import { DotDiffPipeModule } from '@pipes/dot-diff/dot-diff.pipe.module';
Expand Down Expand Up @@ -309,6 +309,10 @@ describe('DotContentCompareTableComponent', () => {
offset: -21600000
})
}
},
{
provide: LoginService,
useValue: { currentUserLanguageId: 'en-US' }
}
]
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { dotContentCompareTableDataMock } from '@components/dot-content-compare/
import { DotContentCompareModule } from '@components/dot-content-compare/dot-content-compare.module';
import { DotContentCompareStore } from '@components/dot-content-compare/store/dot-content-compare.store';
import { DotAlertConfirmService, DotMessageService } from '@dotcms/data-access';
import { DotcmsConfigService } from '@dotcms/dotcms-js';
import { DotcmsConfigService, LoginService } from '@dotcms/dotcms-js';
import { DotCMSContentlet } from '@dotcms/dotcms-models';
import { DotFormatDateService } from '@dotcms/ui';
import { MockDotMessageService } from '@dotcms/utils-testing';
Expand Down Expand Up @@ -87,6 +87,10 @@ describe('DotContentCompareComponent', () => {
offset: -21600000
})
}
},
{
provide: LoginService,
useValue: { currentUserLanguageId: 'en-US' }
}
]
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { TestBed } from '@angular/core/testing';
import { DotContentCompareStore } from '@components/dot-content-compare/store/dot-content-compare.store';
import { MockDotHttpErrorManagerService } from '@dotcms/app/test/dot-http-error-manager.service.mock';
import { DotContentletService, DotContentTypeService } from '@dotcms/data-access';
import { DotcmsConfigService } from '@dotcms/dotcms-js';
import { DotcmsConfigService, LoginService } from '@dotcms/dotcms-js';
import { DotHttpErrorManagerService } from '@services/dot-http-error-manager/dot-http-error-manager.service';

const generateRandomString = function (length: number) {
Expand Down Expand Up @@ -711,6 +711,10 @@ describe('DotContentCompareStore', () => {
})
}
},
{
provide: LoginService,
useValue: { currentUserLanguageId: 'en-US' }
},
{
provide: DotHttpErrorManagerService,
useClass: MockDotHttpErrorManagerService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ import { TableModule } from 'primeng/table';
import { TooltipModule } from 'primeng/tooltip';

import { DotAlertConfirmService, DotMessageService } from '@dotcms/data-access';
import { CoreWebService, DotcmsConfigService, LoggerService, StringUtils } from '@dotcms/dotcms-js';
import {
CoreWebService,
DotcmsConfigService,
LoggerService,
LoginService,
StringUtils
} from '@dotcms/dotcms-js';
import {
DotIconModule,
DotMessagePipe,
Expand Down Expand Up @@ -167,6 +173,10 @@ describe('DotListingDataTableComponent', () => {
offset: -21600000
})
}
},
{
provide: LoginService,
useValue: { currentUserLanguageId: 'en-US' }
}
]
});
Expand Down

0 comments on commit b05398b

Please sign in to comment.