/** * @module subscription respec * * we gotta test our subscription */ // import { cwd, chdir, } from 'node:process'; // import { statSync } from 'node:fs'; // import { mkdir, } from 'node:fs/promises'; // import { ChildProcess, exec, ExecException } from 'node:child_process'; import * as pathUtils from 'path'; import { firstOfAll, firstOfEach, ifWe, ifWeMight, iReckon, lastOfAll, lastOfEach, respecfully, respecfullyDear } from '@ibgib/helper-gib/dist/respec-gib/respec-gib.mjs'; const maam = `[${import.meta.url}]`, sir = maam; import { extractErrorMsg, delay, getSaferSubstring, getTimestampInTicks, getUUID, pretty, } from '@ibgib/helper-gib/dist/helpers/utils-helper.mjs'; import { GLOBAL_LOG_A_LOT } from '../../../core-constants.mjs'; import { newupSubscription } from './subscription-helper.mjs'; /** * for verbose logging. import this. */ const logalot = GLOBAL_LOG_A_LOT; // change this when you want to turn off verbose logging const lcFile: string = `[${pathUtils.basename(import.meta.url)}]`; await respecfully(maam, `creating`, async () => { await ifWe(maam, `create via newupSubscription`, async () => { let subscription = await newupSubscription(); iReckon(maam, subscription).isGonnaBeTruthy(); }); });