mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-25 02:20:24 +00:00
c31490c8b4
* set return type in resetWallet action creator * update config reducer test * update generateWallet reducer test * update swap reducer test * update wallet reducer test * create customTokens reducer test * create deterministicWallets reducer test * create ens reducer test * create notifications reducer test * add crypto compare success/fail actions * add rates reducer test * remove unnecessary comments * remove more comments * remove duplicate import * update wallet reducer test to use BN * update dWallet reducer test to use BN * update wallet reducer tests * update rates reducer tests
16 lines
400 B
TypeScript
16 lines
400 B
TypeScript
import { ens, INITIAL_STATE } from 'reducers/ens';
|
|
import * as ensActions from 'actions/ens';
|
|
|
|
describe('customTokens reducer', () => {
|
|
it('should handle ENS_CACHE', () => {
|
|
const ensName = 'ensName';
|
|
const address = 'address';
|
|
expect(
|
|
ens(undefined, ensActions.cacheEnsAddress(ensName, address))
|
|
).toEqual({
|
|
...INITIAL_STATE,
|
|
[ensName]: address
|
|
});
|
|
});
|
|
});
|