mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
26 lines
540 B
JavaScript
26 lines
540 B
JavaScript
|
import assert from 'assert'
|
||
|
import selectors from '../selectors.js'
|
||
|
const {
|
||
|
getAddressBook,
|
||
|
} = selectors
|
||
|
import mockState from './selectors-test-data'
|
||
|
|
||
|
describe('selectors', () => {
|
||
|
|
||
|
describe('getAddressBook()', () => {
|
||
|
it('should return the address book', () => {
|
||
|
assert.deepEqual(
|
||
|
getAddressBook(mockState),
|
||
|
[
|
||
|
{
|
||
|
address: '0x06195827297c7a80a443b6894d3bdb8824b43896',
|
||
|
name: 'Address Book Account 1',
|
||
|
chainId: '3',
|
||
|
},
|
||
|
],
|
||
|
)
|
||
|
})
|
||
|
})
|
||
|
|
||
|
})
|