[ACS-6924] Rename tags and categories plugins (#9406)

This commit is contained in:
MichalKinas
2024-03-27 23:29:38 +01:00
committed by Aleksander Sklorz
parent d39e924c6d
commit 5f35eee1f9
4 changed files with 4 additions and 4 deletions
@@ -187,7 +187,7 @@ describe('CategoryService', () => {
it('should call get on AppConfigService with correct parameters', () => { it('should call get on AppConfigService with correct parameters', () => {
categoryService.areCategoriesEnabled(); categoryService.areCategoriesEnabled();
expect(getSpy).toHaveBeenCalledWith('plugins.categories', true); expect(getSpy).toHaveBeenCalledWith('plugins.categoriesEnabled', true);
}); });
it('should return true if get from AppConfigService returns true', () => { it('should return true if get from AppConfigService returns true', () => {
@@ -163,6 +163,6 @@ export class CategoryService {
* @returns boolean true if categories plugin is enabled, false otherwise. * @returns boolean true if categories plugin is enabled, false otherwise.
*/ */
areCategoriesEnabled(): boolean { areCategoriesEnabled(): boolean {
return this.appConfigService.get('plugins.categories', true); return this.appConfigService.get('plugins.categoriesEnabled', true);
} }
} }
@@ -349,7 +349,7 @@ describe('TagService', () => {
it('should call get on AppConfigService with correct parameters', () => { it('should call get on AppConfigService with correct parameters', () => {
service.areTagsEnabled(); service.areTagsEnabled();
expect(getSpy).toHaveBeenCalledWith('plugins.tags', true); expect(getSpy).toHaveBeenCalledWith('plugins.tagsEnabled', true);
}); });
it('should return true if get from AppConfigService returns true', () => { it('should return true if get from AppConfigService returns true', () => {
@@ -183,6 +183,6 @@ export class TagService {
* @returns boolean true if tags plugin is enabled, false otherwise. * @returns boolean true if tags plugin is enabled, false otherwise.
*/ */
areTagsEnabled(): boolean { areTagsEnabled(): boolean {
return this.appConfigService.get('plugins.tags', true); return this.appConfigService.get('plugins.tagsEnabled', true);
} }
} }