diff --git a/packages/contentstack-clone/test/commands/stack-clone.test.js b/packages/contentstack-clone/test/commands/stack-clone.test.js index 379cde37cd..cab4cedd02 100644 --- a/packages/contentstack-clone/test/commands/stack-clone.test.js +++ b/packages/contentstack-clone/test/commands/stack-clone.test.js @@ -23,27 +23,14 @@ test // expect(spy.calledOnce).to.be.true }) - -test -.it('organizationSelection ', async () => { - var orgSelectStub = sinon.spy(messages, 'organizationSelection') - messages.organizationSelection("export") - expect(orgSelectStub.calledOnce).to.be.true - }) - -test -.it('stackSelection Function', async () => { - var spystackSelection = sinon.spy(messages, 'stackSelection'); - messages.stackSelection('import'); - expect(spystackSelection.called).to.be.true -}) - -test -.it('getStackChoices function', async () => { - var spy = sinon.spy(messages, 'getStackChoices') - messages.getStackChoices('dummyOrg', "export"); + describe('stack Clone Test', () => { + test +.it('start function', async () => { + var spy = sinon.spy(messages, 'start') + messages.start(); expect(spy.calledOnce).to.be.true }) +}) test .it('createNewStack function', async () => { @@ -51,25 +38,4 @@ test messages.createNewStack('dummyOrg'); expect(spy.calledOnce).to.be.true }) - -// test -// .it('cmdExportImport function', async () => { -// var spy = sinon.spy(messages, 'cmdExportImport') -// messages.cmdExportImport('import'); -// expect(spy.calledOnce).to.be.true -// }) - -test -.it('cmdExe function', async () => { - var spy = sinon.spy(messages, 'cmdExe') - messages.cmdExe('dummyNodule', 'dummyBackup'); - // expect(spy.calledOnce).to.be.true -}) - -test -.it('stackCreationConfirm function', async () => { - var stackCreationConfirm = sinon.spy(messages, 'stackCreationConfirm') - messages.stackCreationConfirm({stackCreate: false}) - // expect(stackCreationConfirm.calledOnce).to.be.true -}) }) \ No newline at end of file diff --git a/packages/contentstack-export/src/lib/util/export-flags.js b/packages/contentstack-export/src/lib/util/export-flags.js index bcb2c6dc83..66e98445be 100644 --- a/packages/contentstack-export/src/lib/util/export-flags.js +++ b/packages/contentstack-export/src/lib/util/export-flags.js @@ -79,7 +79,6 @@ exports.parametersWithAuthToken = function (_authToken, sourceStack, data, modul return reject(error) }) }) - } exports.withoutParametersWithAuthToken = async (_authToken, moduleName, host) => {