UNPKG

@haechi-labs/henesis-cli

Version:

🚀 Command Line Interface tool to Utilize henesis

24 lines • 908 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const test_1 = require("@oclif/test"); process.env.HENESIS_TEST = 'true'; describe('integration:delete', () => { context('when no error occurred', () => { const id = 'integrationId'; test_1.test .nock('http://localhost:8080', (api) => api.delete('/integrations/v1/' + id).reply(200, '')) .stdout() .command([`integration:delete`, id]) .it('delete a integration', (ctx) => { test_1.expect(ctx.stdout).to.equal(`${id} has been deleted\n`); }); }); context('when integrationId does not exist', () => { test_1.test .stdout() .command(['integration:delete']) .exit(2) .it('exits with status 1 when integrationId does not provided'); }); }); //# sourceMappingURL=delete.spec.js.map