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

View File

@@ -20,9 +20,9 @@ describe(StorageService.name, () => {
expect(sut).toBeDefined();
});
describe('init', () => {
describe('onBootstrapEvent', () => {
it('should create the library folder on initialization', () => {
sut.init();
sut.onBootstrapEvent();
expect(storageMock.mkdirSync).toHaveBeenCalledWith('upload/library');
});
});