Skip to content

Commit

Permalink
fix(): make sure test fails when authenticate not called
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Aug 21, 2020
1 parent aaec5cc commit aabaea4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e/sequelize-authenticate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe('Sequelize (authenticate)', () => {
});
try {
await module.compile();
throw new Error('Sequelize did not throw an error'); // it should never reach this line
} catch (err) {
expect(err).toBeInstanceOf(ConnectionRefusedError);
}
Expand Down

0 comments on commit aabaea4

Please sign in to comment.