@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
28 lines • 921 B
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { expect } from 'chai';
import Sinon from 'sinon';
import { VersionRequest } from '../../../../../src/integration/kind/request/version-request.js';
describe('VersionRequest', () => {
let builder;
let request;
beforeEach(() => {
// Create a stub for the builder
builder = {
subcommands: Sinon.stub().returnsThis(),
};
// Create the request
request = new VersionRequest();
});
afterEach(() => {
Sinon.restore();
});
describe('apply', () => {
it('should add version subcommand to the builder', () => {
// Call the apply method
request.apply(builder);
// Verify the correct subcommand was added
expect(builder.subcommands).to.have.been.calledOnceWith('version');
});
});
});
//# sourceMappingURL=version-request.test.js.map