Skip to content

Commit

Permalink
remove cache test since we don't have anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Mar 26, 2019
1 parent 8053717 commit ad9362b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/util/transactions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,6 @@ describe('Transactions utils :: isSmartContractAddress', () => {
expect(stub).toBeCalled();
});

it('isSmartContractAddress should not call query if cached', async () => {
Engine.context = MOCK_ENGINE.context;
await isSmartContractAddress('0x1', '0x123');
const stub = spyOn(Engine.context.TransactionController, 'query');
await isSmartContractAddress('0x1', '0x123');
expect(stub).not.toBeCalled();
});

it('isSmartContractAddress should call query if only address was provided', async () => {
Engine.context = MOCK_ENGINE.context;
const stub = spyOn(Engine.context.TransactionController, 'query');
Expand Down

0 comments on commit ad9362b

Please sign in to comment.