mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat: add cleanup module
This commit is contained in:
36
api/src/utils/test/fixtures/setting.ts
vendored
36
api/src/utils/test/fixtures/setting.ts
vendored
@@ -11,6 +11,7 @@ import mongoose from 'mongoose';
|
||||
import { SettingCreateDto } from '@/setting/dto/setting.dto';
|
||||
import { SettingModel } from '@/setting/schemas/setting.schema';
|
||||
import { SettingType } from '@/setting/schemas/types';
|
||||
import { getRandom } from '@/utils/helpers/safeRandom';
|
||||
|
||||
export const settingFixtures: SettingCreateDto[] = [
|
||||
{
|
||||
@@ -90,6 +91,41 @@ export const settingFixtures: SettingCreateDto[] = [
|
||||
type: SettingType.text,
|
||||
weight: 10,
|
||||
},
|
||||
{
|
||||
group: `${getRandom()}_channel`,
|
||||
label: `${getRandom()}`,
|
||||
value: '',
|
||||
type: SettingType.text,
|
||||
weight: 11,
|
||||
},
|
||||
{
|
||||
group: `${getRandom()}_helper`,
|
||||
label: `${getRandom()}`,
|
||||
value: '',
|
||||
type: SettingType.text,
|
||||
weight: 12,
|
||||
},
|
||||
{
|
||||
group: `${getRandom()}_channel`,
|
||||
label: `${getRandom()}`,
|
||||
value: '',
|
||||
type: SettingType.text,
|
||||
weight: 13,
|
||||
},
|
||||
{
|
||||
group: `${getRandom()}_helper`,
|
||||
label: `${getRandom()}`,
|
||||
value: '',
|
||||
type: SettingType.text,
|
||||
weight: 14,
|
||||
},
|
||||
{
|
||||
group: 'local_storage_helper',
|
||||
label: 'default storage helper label',
|
||||
value: 'local-storage-helper',
|
||||
type: SettingType.text,
|
||||
weight: 15,
|
||||
},
|
||||
];
|
||||
|
||||
export const installSettingFixtures = async () => {
|
||||
|
||||
Reference in New Issue
Block a user