Skip to content

Commit

Permalink
Added a test case for model.connect() to make coverage 100%.
Browse files Browse the repository at this point in the history
  • Loading branch information
bow-fujita committed Oct 11, 2018
1 parent eefb3a4 commit fb772aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/suites/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ describe('models', () => {
.then(() => done(), done);
});

it('no argument', (done) => {
exprest.model.connect()
.should.be.rejectedWith(/Access denied/)
.then(() => done(), done);
});

}); // connect

describe('sqlite', () => {
Expand Down

0 comments on commit fb772aa

Please sign in to comment.