refactor(server): event emits (#10648)

* refactor(server): event emits

* refactor: change default priority to 0
This commit is contained in:
Jason Rasmussen
2024-06-27 15:54:20 -04:00
committed by GitHub
parent 7e99394c70
commit 72bf9439b0
25 changed files with 222 additions and 171 deletions
@@ -76,10 +76,10 @@ describe(StorageTemplateService.name, () => {
SystemConfigCore.create(systemMock, loggerMock).config$.next(defaults);
});
describe('onValidateConfig', () => {
describe('onConfigValidateEvent', () => {
it('should allow valid templates', () => {
expect(() =>
sut.onValidateConfig({
sut.onConfigValidateEvent({
newConfig: {
storageTemplate: {
template:
@@ -93,7 +93,7 @@ describe(StorageTemplateService.name, () => {
it('should fail for an invalid template', () => {
expect(() =>
sut.onValidateConfig({
sut.onConfigValidateEvent({
newConfig: {
storageTemplate: {
template: '{{foo}}',