Skip to content

Commit

Permalink
Test for Error, not string
Browse files Browse the repository at this point in the history
  • Loading branch information
dsix-work committed Oct 3, 2016
1 parent 9f18679 commit 6d42fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('S3Adapter tests', () => {
it('should throw when not initialized properly', () => {
expect(() => {
var s3 = new S3Adapter();
}).toThrow('Failed to configure S3Adapter. Arguments don\'t make sense')
}).toThrow(new Error('Failed to configure S3Adapter. Arguments don\'t make sense'));

expect(() =>  {
var s3 = new S3Adapter('accessKey', 'secretKey', {});
Expand Down

0 comments on commit 6d42fe5

Please sign in to comment.