Skip to content

Commit

Permalink
made changes in utils file
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmishra209 committed Mar 5, 2021
1 parent ed2af42 commit 730fbd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 41 deletions.
46 changes: 6 additions & 40 deletions packages/contentstack-clone/test/commands/stack-clone.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,53 +23,19 @@ 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 () => {
var spy = sinon.spy(messages, 'createNewStack')
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
})
})
1 change: 0 additions & 1 deletion packages/contentstack-export/src/lib/util/export-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ exports.parametersWithAuthToken = function (_authToken, sourceStack, data, modul
return reject(error)
})
})

}

exports.withoutParametersWithAuthToken = async (_authToken, moduleName, host) => {
Expand Down

0 comments on commit 730fbd5

Please sign in to comment.