mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
faee78370d
Pick folders from a lazily loaded tree with find-by-name and typed paths, beside a plan showing the books each organization mode would import, overlaps with other libraries, and folders no library reads yet. New ManageLibraries /path routes walk folders within entry and time bounds. Fix the scanner filing a disc-named library folder such as /mnt/disk1 under the folder above it, and move books already filed there onto their primary file on the next scan.
17 lines
791 B
TypeScript
17 lines
791 B
TypeScript
import 'reflect-metadata';
|
|
|
|
import { FolderInsightService } from './folder-insight.service';
|
|
import { PathController } from './path.controller';
|
|
import { PathModule } from './path.module';
|
|
import { PathPolicyService } from './path-policy.service';
|
|
import { PathRepository } from './path.repository';
|
|
import { PathService } from './path.service';
|
|
|
|
describe('PathModule', () => {
|
|
it('registers the path controller, its services and the library folder repository', () => {
|
|
expect(Reflect.getMetadata('controllers', PathModule)).toEqual([PathController]);
|
|
expect(Reflect.getMetadata('providers', PathModule)).toEqual([PathPolicyService, PathService, PathRepository, FolderInsightService]);
|
|
expect(Reflect.getMetadata('exports', PathModule)).toEqual([PathPolicyService]);
|
|
});
|
|
});
|