1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/test/frontend/__lib__/fixtures.ts

38 lines
1.7 KiB
TypeScript
Raw Normal View History

import groups from '../__fixtures__/groups';
import plans from '../__fixtures__/plans';
import planCategories from '../__fixtures__/plan_categories';
import { partners, managers, users } from '../__fixtures__/users';
import { settings } from '../__fixtures__/settings';
import products from '../__fixtures__/products';
import productCategories from '../__fixtures__/product_categories';
import productStockMovements from '../__fixtures__/product_stock_movements';
import machines from '../__fixtures__/machines';
import providers from '../__fixtures__/auth_providers';
import profileCustomFields from '../__fixtures__/profile_custom_fields';
import spaces from '../__fixtures__/spaces';
import statuses from '../__fixtures__/statuses';
const FixturesLib = {
init: () => {
return {
groups: JSON.parse(JSON.stringify(groups)),
plans: JSON.parse(JSON.stringify(plans)),
planCategories: JSON.parse(JSON.stringify(planCategories)),
partners: JSON.parse(JSON.stringify(partners)),
managers: JSON.parse(JSON.stringify(managers)),
users: JSON.parse(JSON.stringify(users)),
settings: JSON.parse(JSON.stringify(settings)),
products: JSON.parse(JSON.stringify(products)),
productCategories: JSON.parse(JSON.stringify(productCategories)),
productStockMovements: JSON.parse(JSON.stringify(productStockMovements)),
machines: JSON.parse(JSON.stringify(machines)),
providers: JSON.parse(JSON.stringify(providers)),
profileCustomFields: JSON.parse(JSON.stringify(profileCustomFields)),
spaces: JSON.parse(JSON.stringify(spaces)),
statuses: JSON.parse(JSON.stringify(statuses))
};
}
};
export default FixturesLib;