hzn-cli
Version:
Open Horizon CLI toolkit helps streamline the process of preparing node agents and perform tasks between orgs environments
31 lines (28 loc) • 887 B
text/typescript
import { Hzn } from '../../src/common/src/hzn';
import { Utils } from '../../src/common/src/utils';
import { Env } from '../../src/common/src/env';
import { IHznParam, justRun, runDirectly, promptForUpdate } from '../../src/common/src/interface';
import { } from '../helpers/mock';
describe('Hzn', () => {
let instance: Hzn;
let param: IHznParam = {
org: 'myorg',
configPath: 'configPath',
name: 'name',
objectType: 'objectType',
objectId: 'objectId',
objectFile: 'objectFile',
mmsPattern: 'mmsPattern',
action: 'action',
watch: 'true'
}
beforeEach(() => {
instance = new Hzn(param)
})
it('should have instance of Hzn, Utils & Env', () => {
expect(instance).toBeInstanceOf(Hzn)
expect(instance.utils).toBeInstanceOf(Utils)
expect(instance.envVar).toBeInstanceOf(Env)
// expect(Utils).toHaveBeenCalledTimes(0)
})
})