Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Correct the Loopback Connector (#913)
Browse files Browse the repository at this point in the history
* get the loopback adapter up and working

* updates to unit test

* Unit test updates
  • Loading branch information
mbwhite authored May 10, 2017
1 parent 06baa00 commit 0759788
Show file tree
Hide file tree
Showing 9 changed files with 1,707 additions and 449 deletions.
196 changes: 0 additions & 196 deletions packages/composer-cli/lib/cmds/generator/lib/tests.js

This file was deleted.

43 changes: 0 additions & 43 deletions packages/composer-cli/lib/cmds/generator/testsCommand.js

This file was deleted.

15 changes: 15 additions & 0 deletions packages/composer-cli/test/generator/createCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ describe('composer generator create unit tests', function () {
sandbox.stub(fs,'readFileSync' );
sandbox.stub(process, 'exit');


});

afterEach(() => {
Expand Down Expand Up @@ -161,7 +162,21 @@ describe('composer generator create unit tests', function () {
sinon.assert.calledWith(mockBusinessNetworkDefinition.accept,mockJSONSchema,parameters);
});
});
it('Invalid generator specified', function () {

let argv = {archiveFile: 'testArchiveFile.zip'
,format: 'I-do-not-exist'
,outputDir: '/home'};

return Create.handler(argv)
.then ((result) => {

}).catch((error) => {
error.should.not.to.be.undefined;
}

);
});

});

Expand Down
Loading

0 comments on commit 0759788

Please sign in to comment.