UNPKG

@haechi-labs/henesis-cli

Version:

🚀 Command Line Interface tool to Utilize henesis

27 lines • 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const test_1 = require("@oclif/test"); const mock_1 = require("../../mock"); process.env.HENESIS_TEST = 'true'; describe('integration:describe', () => { context('when no error occurred', () => { const integration = mock_1.newMockIntegration(); test_1.test .nock('http://localhost:8080', (api) => api .get('/integrations/v1/' + integration.integrationId) .reply(200, integration)) .stdout() .command([`integration:describe`, integration.integrationId]) .it('describe a integration', (ctx) => { test_1.expect(ctx.stdout).to.equal(JSON.stringify(integration, undefined, 2) + '\n'); }); }); context('when integrationId does not provided', () => { test_1.test .stdout() .command(['integration:describe']) .exit(2) .it('exits with status 1 when integrationId does not provided'); }); }); //# sourceMappingURL=describe.spec.js.map