import {J} from "../../utils"; import {CCTXPlaygroundApiModelsTestSuite} from "../../types"; import {ControllerNetwork} from "../types"; import {userAcctController} from "./01-user-acct"; import {profileController} from "./02-user-profile"; import {uploadController} from "./03-upload"; export const initControllerTests = (A:CCTXPlaygroundApiModelsTestSuite,O:ControllerNetwork) => J.desc("INIT",() => { it("Init DB & Controller Network",async () => {await O.init(A.api);},1E9); }); export const wrapupControllerTests = (O:ControllerNetwork) => J.desc("WRAPUP",() => { it("Log Models",async () => { console.log( O.jsons.users[0], O.jsons.profiles[0], O.jsons.uploads[0], ); },1E9); }); export const CCTXPlaygroundModelControllerTests = (A:CCTXPlaygroundApiModelsTestSuite) => J.desc("CCTX-PLAYGROUND MODEL CONTROLLERS",() => { const O = new ControllerNetwork(); initControllerTests(A,O); userAcctController(O); profileController(O); uploadController(O); wrapupControllerTests(O); });