Skip to content

Commit

Permalink
Merge pull request #2871 from ethereum/enhancement/non-static-type-pr…
Browse files Browse the repository at this point in the history
…operty-added

non-static type property added
  • Loading branch information
nivida committed Jun 4, 2019
2 parents f0d941f + 70c211d commit c3f4845
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,23 @@ export default class AbstractObservedTransactionMethod extends AbstractMethod {
}

/**
* This type will be used in the AbstractMethodFactory.
* This type will be used in the AbstractMethodFactory.and BatchRequest class
*
* @returns {String}
*/
static get Type() {
return 'observed-transaction-method';
}

/**
* This type will be used in the AbstractMethodFactory and BatchRequest class
*
* @returns {String}
*/
get Type() {
return 'observed-transaction-method';
}

/**
* Sends the request and returns a PromiEvent Object
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ describe('AbstractObservedTransactionMethodTest', () => {
expect(method.transactionObserver).toEqual(transactionObserverMock);

expect(method.promiEvent).toBeInstanceOf(PromiEvent);

expect(method.Type).toEqual('observed-transaction-method');
});

it('calls execute with event listeners and is emitting the expected values', (done) => {
Expand Down

0 comments on commit c3f4845

Please sign in to comment.