mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 16:18:07 +01:00
638e242ce6
Co-Authored-By: Paweł Lula <pavloblack@hotmail.com> Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
25 lines
567 B
JavaScript
25 lines
567 B
JavaScript
import assert from 'assert'
|
|
import { getAddressBook } from '../selectors.js'
|
|
import mockState from './selectors-test-data'
|
|
|
|
describe('selectors', () => {
|
|
|
|
describe('getAddressBook()', () => {
|
|
it('should return the address book', () => {
|
|
assert.deepEqual(
|
|
getAddressBook(mockState),
|
|
[
|
|
{
|
|
'address': '0x06195827297c7a80a443b6894d3bdb8824b43896',
|
|
'chainId': '3',
|
|
'isEns': false,
|
|
'memo': '',
|
|
'name': 'Address Book Account 1',
|
|
},
|
|
],
|
|
)
|
|
})
|
|
})
|
|
|
|
})
|