UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

22 lines 1.21 kB
// SPDX-License-Identifier: Apache-2.0 import { it, describe } from 'mocha'; import { expect } from 'chai'; import * as constants from '../../../../src/core/constants.js'; import { container } from 'tsyringe-neo'; import { InjectTokens } from '../../../../src/core/dependency-injection/inject-tokens.js'; describe('ChartManager', () => { const chartManager = container.resolve(InjectTokens.ChartManager); it('should be able to list installed charts', async () => { const ns = constants.SOLO_SETUP_NAMESPACE; expect(ns, 'namespace should not be null').not.to.be.null; const list = await chartManager.getInstalledCharts(ns); expect(list, 'should have at least one installed chart').not.to.have.lengthOf(0); }); it('should be able to check if a chart is installed', async () => { const ns = constants.SOLO_SETUP_NAMESPACE; expect(ns, 'namespace should not be null').not.to.be.null; const isInstalled = await chartManager.isChartInstalled(ns, constants.MINIO_OPERATOR_RELEASE_NAME); expect(isInstalled, `${constants.MINIO_OPERATOR_RELEASE_NAME} should be installed`).to.be.ok; }); }); //# sourceMappingURL=chart-manager.test.js.map