AI Implementation feature(893): Admin Area General Settings and Categories 1.11 (#33)
This commit was merged in pull request #33.
This commit is contained in:
@@ -43,7 +43,9 @@ describe('DatabaseInitService', () => {
|
||||
|
||||
const categories = await ds.getRepository(CategoryEntity).find();
|
||||
const systemCats = categories.filter((c: any) => c.systemKey);
|
||||
expect(systemCats.length).toBeGreaterThanOrEqual(6);
|
||||
expect(systemCats.length).toBe(6);
|
||||
const systemKeys = systemCats.map((c: any) => c.systemKey).sort();
|
||||
expect(systemKeys).toEqual(['CRY', 'HW', 'MSC', 'PWN', 'REV', 'WEB']);
|
||||
|
||||
const settings = await ds.getRepository(SettingEntity).find();
|
||||
const keys = settings.map((s: any) => s.key);
|
||||
|
||||
Reference in New Issue
Block a user