-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
72 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...e-text/acore-text-handler.service.spec.ts → ...text/acore-string-handler.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
libs/features/texts/src/acore-text/acore-string.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
import { AcoreStringService } from './acore-string.service'; | ||
import { AcoreStringHandlerService } from './acore-string-handler.service'; | ||
import { instance, mock } from 'ts-mockito'; | ||
import { ToastrService } from 'ngx-toastr'; | ||
|
||
describe(AcoreStringService.name, () => { | ||
beforeEach(() => | ||
TestBed.configureTestingModule({ | ||
providers: [AcoreStringHandlerService, { provide: ToastrService, useValue: instance(mock(ToastrService)) }], | ||
}), | ||
); | ||
|
||
it('should be created', () => { | ||
expect(TestBed.inject(AcoreStringService)).toBeTruthy(); | ||
}); | ||
}); |
6 changes: 3 additions & 3 deletions
6
...exts/src/acore-text/acore-text.service.ts → ...ts/src/acore-text/acore-string.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { SingleRowEditorService } from '@keira/shared/base-abstract-classes'; | ||
import { AcoreTextHandlerService } from './acore-text-handler.service'; | ||
import { AcoreStringHandlerService } from './acore-string-handler.service'; | ||
import { ACORE_STRING_DEFAULT, ACORE_STRING_ENTRY, ACORE_STRING_TABLE, AcoreString } from '@keira/shared/acore-world-model'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class AcoreTextService extends SingleRowEditorService<AcoreString> { | ||
export class AcoreStringService extends SingleRowEditorService<AcoreString> { | ||
/* istanbul ignore next */ // because of: https://github.com/gotwarlost/istanbul/issues/690 | ||
constructor(protected override handlerService: AcoreTextHandlerService) { | ||
constructor(protected override handlerService: AcoreStringHandlerService) { | ||
super(AcoreString, ACORE_STRING_TABLE, ACORE_STRING_ENTRY, ACORE_STRING_DEFAULT, true, handlerService); | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
libs/features/texts/src/acore-text/acore-text.service.spec.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters