Skip to content

Commit

Permalink
fix: refactoring "SendMessageBatchError". Removing redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
KodiVerse committed Aug 20, 2019
1 parent 0d6cd72 commit c7da539
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
11 changes: 4 additions & 7 deletions src/resources/errors.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
class SendMessageBatchError extends Error {
constructor(details) {
super('Send message batch error.');
this.details = details;
}

toString() {
return `${super.toString()}\n${JSON.stringify(this.details)}`;
constructor(message) {
super();
this.name = 'Send message batch error';
this.message = message;
}
}

Expand Down
14 changes: 0 additions & 14 deletions test/resources/errors.spec.js

This file was deleted.

0 comments on commit c7da539

Please sign in to comment.